Is there a way to disable a scattermapbox’s scrollZoom. I have tried the config attribute as show below.
dcc.Graph(
id = "mapbox",
figure= go.Figure(
data=[
dict(
type = "scattermapbox",
lat = lats,
lon = lons,
mode = "markers",
marker = dict(size=200,color='rgb(242, 177, 172)',opacity=0.3),
text = text
)
],
layout= dict(
autosize = True,
hovermode = "closest",
margin = dict(l = 0, r = 0, t = 0, b = 0),
showlegend = False,
xaxis=dict(
fixedrange=True
),
yaxis=dict(
autorange='reversed',
fixedrange=True
),
mapbox = dict(
accesstoken = mapbox_access_token,
bearing =0,
center = dict(lat = 25.2489, lon = 55.3061),
style = "dark",
pitch = 0,
zoom = 2.5,
layers = [],
)
)
),
style = {"height": "100%"},
config={'scrollZoom': False,'displayModeBar': False}
)
But unfortunately, it does not work. I have tried using multiple other options from the list and all others seem to work such as the display mode bar in the above example. Its just the scrollZoom on the scattermapbox. Any help ?