I am connecting my Dash output to a custom styled mapbox style. In my custom mapbox style, I have enabled 3D terrain which gives super cool insights and it allows you to tilt the map so that you can see the different terrain gradients.
The problem is that this functionality is not working when I connect to the style and display in Dash. It is almost as if the tilt is limited - does anyone know how to solve this?
Plotly Map Code
data = go.Scattermapbox(
)
layout = go.Layout(
mapbox = {
‘style’: ‘‘mapbox://styles/h2gilks123/cl0cao8j300am15p2bott3x7x’’,
‘accesstoken’: token,
‘center’: {‘lon’: 18.24644028702014, ‘lat’: 2.377495662283853},
‘zoom’: 1,
‘layers’: [{
‘source’: {
‘type’: “FeatureCollection”,
‘features’: mapdata
},
‘type’: “line”, ‘below’: “traces”, ‘color’: “red”}
]},
margin = {‘l’:0, ‘r’:0, ‘b’:0, ‘t’:0}
)
map_output = go.Figure(data=data, layout=layout)
Link to app