HTML - Folium - Not able to display map properly on the app despite unsafe_allow_html=True
See original GitHub issueI am creating an app using streamlit and folium. (I used unsafe_allow_html=True
to make sure the map could be displayed in the app).
My dataset contains 2000 rows. My deseriable output is a map of 2000 points, and if I click on each point, a pop up appears with information about address.
- If I visualize everything with popup, the map does not appear on streamlit app.
- If I visualize only 500 rows with popup, the map appears on streamlit app.
- If I visualize everything without pop up, the map appears on streamlit app.
Note that if I use folium alone, I could still manage to create an HTML map file of 2000 points with popup. It is just I could not visualize it on streamlit app.
Could you have a check on this? Is it due to the size of my HTML?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
python - Folium map not displaying - Stack Overflow
To display in the iPython notebook, you need to generate the html with the myMap._build_map() method, and then wrap it in an iFrame...
Read more >Data Driven Maps With Python Folium & Leaflet.js - YouTube
Python Folium allows us to combine data and Python programming with the Leaflet.js map library to build powerful maps.
Read more >Folium and heatmap is not opening in pycharm
I'm getting error in temp , folium map is not displaying any output and html page showing a blank page. I tried it...
Read more >foliumap module - leafmap
A Python package for interactive mapping and geospatial analysis with minimal coding in a Jupyter environment.
Read more >Creating a Simple Map with Folium and Python
Using Folium with Python is a great way to get started with mapping geospatial data. With a few lines of code, it is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
From https://github.com/streamlit/streamlit/issues/241#issuecomment-609823134 custom components is expected by H1 2020, should be around pretty soon as it’s entering beta-testing 😉
Closing as dupe of #601