You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The scroll action used to zoom in and out of mapbox images isn't working anymore (it used to). Instead the scroll action is now passed to the parent browser window and scrolls the entire page up and down.
import marimo as mo
import pandas as pd
import plotly.express as px
import plotly.graph_objects as go
import plotly.io as pio
_data = pd.DataFrame({"latitude":[],"longitude":[]})
_params = {"lat":"latitude","lon":"longitude"}
_view = {"zoom":2.75,"center":{"lat":40,"lon":-96}}
map = px.scatter_mapbox(_data,**_params,**_view)
map.update_layout(mapbox_style="open-street-map")
The text was updated successfully, but these errors were encountered:
Fyi, plotly is slowly deprecating mapbox in favour of map (mapbox uses a different map library) and we recently updated the plotly library to better support the new map library used.
@Light2Dark, that probably explains the difference. I wasn't aware of the imminent deprecation. I just noticed that in an older marimo notebook I had zoom wasn't working. The switch to map is mostly ok, esp. if zoom doesn't work in mapbox anymore. If @mscolnick thinks this is a mapbox vs. map issue and not a marimo issue, then I think we ought to close this issue and leave these comments for the record if anyone runs into this problem again.
Describe the bug
The scroll action used to zoom in and out of mapbox images isn't working anymore (it used to). Instead the scroll action is now passed to the parent browser window and scrolls the entire page up and down.
Environment
Code to reproduce
The text was updated successfully, but these errors were encountered: