Hi, I am trying to display a gmaps figure that has a direction layer, but in the app, the direction layer is not displayed
here is the code
Durango = (37.2753,-107.880067)
SF = (37.7749,-122.419416)
#Create the map
fig = gmaps.figure()
#create the layer
layer = gmaps.directions.Directions(Durango, SF,mode='car')
#Add the layer
fig.add_layer(layer)
#Display the map
snippet = embed.embed_snippet(views=fig)
html = embed.html_template.format(title="", snippet=snippet)
components.html(html, height=1000,width=1000)
I have also tried the same code in jupyter notebook, and it’s working there
I would appreciate any help I can get, Thank You.