Repository navigation
|
I exported a MapLibre basemap as a test to HTML and am noticing the zoom buttons and fullscreen toggle button available in the map when visualized in my Jupyter notebook are not present in the HTML version of the map. Is there a way to include the fullscreen button in the HTML version? |
Answered by
giswqs
Nov 22, 2024
Replies: 2 comments 2 replies
|
The exported map should have the same controls as shown in Jupyter Notebook. See examples at |
2 replies
|
Use this. Save the map as HTML before displaying it. Otherwise, you won't see any controls or any layers except the basemap. import leafmap.maplibregl as leafmap
m = leafmap.Map(
center=(-98.5795,39.8283),
zoom=3,
height='600px')
m.to_html('basemap.html')
m |
0 replies
Answer selected by
giswqs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use this. Save the map as HTML before displaying it. Otherwise, you won't see any controls or any layers except the basemap.