Skip to content

Including Fullscreen Button in Map Exported With to_html() #993

Answered by giswqs
diehl asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@diehl
Comment options

@diehl
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by giswqs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants