Skip to content

Is there a way to embed the map object in a streamlit app and display it there? #69

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

You must be logged in to vote

Yes, it is possible to deploy leafmap using streamlit. Check out this streamlit geemap demo: https://gishub.org/streamlit-geemap. Simply replace geemap with leafmap, and geemap.eefolium with leafmap.foliumap.
Source code: https://github.com/giswqs/geemap-streamlit/blob/main/geemap_app.py

@deeplook is correct. Streamlit only supports folium at the moment. If you want the full interactive functionality of leafmap with the ipyleaflet plotting backend, you can try Voila and heroku. See this tutorial: https://youtu.be/nsIjfD83ggA

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@deeplook
Comment options

Comment options

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

@giswqs
Comment options

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
4 participants