Closed giswqs closed 3 years ago
@giswqs I will look into it.
This feature has been implemented. See https://leafmap.org/heremap/#leafmap.heremap.Map.to_streamlit. Currently the exported map does not contain controls (e.g., zoom control, layer control), which needs to be fixed by the upstream heremap widget.
import leafmap.heremap as leafmap
m = leafmap.Map()
m.to_streamlit()
To add stseamlit support for the heremap plotting backend, we need to save the map as an HTML file. However, it seems the exported HTML lose the map controls (e.g., zoom control, fullscreen control). @sackh Any advice?
The same method works fine for ipylealfet. The exported HTML has the map controls.