Skip to content

save to html #23

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

You must be logged in to vote

This bug has been fixed. Please update the package using leafmap.update_package().

For folium

import leafmap.foliumap as leafmap
m = leafmap.Map()
m.save("mymap.html")

For ipyleaflet (Notebook: it seems ipyleaflet has a bug right now. You might get a blank map. See jupyter-widgets/ipyleaflet#841)

import leafmap
m = leafmap.Map()
# m.save("mymap.html") #this one should also work
m.to_html("mymap.html")

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by giswqs
Comment options

You must be logged in to vote
0 replies
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