question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HTML - Folium - Not able to display map properly on the app despite unsafe_allow_html=True

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
andfanilocommented, May 3, 2020

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 😉

0reactions
jrhonecommented, May 11, 2020

Closing as dupe of #601

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found