The community member was having issues with Leafmap widgets rendering Choropleth maps in Marimo. The maps worked fine in Jupyter, but in Marimo, one map initially rendered okay, but when zooming in, the Choropleth polygons got out of sync with the Leaflet map. Rendering multiple Leafmap widgets at once in Marimo also caused issues, which did not happen in Jupyter.
In the comments, another community member shared a simpler example, but it also showed the issue with the polygons getting out of sync when zooming. The Marimo team looked into the issue and found that the Leafmap module uses ipyleaflet, which Marimo does not support. They suggested using the folium backend instead, which is what Google Colab uses.
The community members also discussed the possibility of Leafmap migrating to the anywidget library, which Marimo supports.
I was having issues with getting Leafmap widgets rendering Choropleth maps to work in Marimo. In this particular example I rendered two Choropleth maps in separate cells which works fine in Jupyter - I converted the notebook to Marimo and initially one of the maps sort of rendered okay - but the moment I tried zooming in the rendered Choropleth polygons got out of sync with the Leaflet map they were overlaying amongst some other text errors before finally the widgets stopped rendering in Marimo altogether.
I can provide the complete notebook if that helps.
I used both from the same conda-forge Python environment with Python 3.12 on Windows and these package versions:
No the second example shows one of the issues... in that example when the widget renders it looks fine initially but when you zoom in and out of the map the polygons get out of sync with the raster leaflet map tiles which you can see in the image (the darker polygon countries aren't overlaying the lighter colored leaflet map raster coastlines properly anymore).
A second issue to explore which happened in my initial more complicated example is that if you try and render two leafmap widgets at once in a Marimo notebook it seems to mess up the state when you interact with them... but rendering multiple leafmap widgets at once in Jupyter isn't an issue.