-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
Describe the bug
Any PC in Malaysia connected to the local ISP could will somehow fail or take too long to load any Folium Maps on the browser. I noticed this is a problem only on Malaysian internet connected PCs because when I load the same maps on VPN and changing the region to the US or Singapore, it would load just fine.
To Reproduce
- If you are not in Malaysia, use a VPN to change your region to Malaysia
- Try loading any Folium Maps. The examples where I encountered this problem are below
https://share.streamlit.io/randyzwitch/streamlit-folium/examples/streamlit_app.py
https://share.streamlit.io/nabilersyad/train-stations-isochrones/webapp/webapp.py
https://www.kaggle.com/code/alexisbcook/interactive-maps - You'll notice that either the maps will take almost a minute to load or the prompt 'Trust this Notebook' will appear
- Repeat by changing the region to any other than Malaysia and use try the same maps. You'll notice that the maps load just fine.
- Note that if you have already loaded a Folium map in a region outside Malaysia and then switching to Malaysia, you will temporarily still be able to load the map normally.
Expected behavior
I expect that Folium Maps would load almost instantly in under 5 seconds.
Environment (please complete the following information):
- Browser [e.g. chrome, Brave]
- Jupyter Notebook, Kaggle notebook and Streamlit Webapps.
- python ==3.8
- folium==0.12.1
Additional context
Possible solutions
It is possibly a backend or a firewall problem? I'm not really sure.
folium is maintained by volunteers. Can you help making a fix for this issue?
I've tried workarounds but none of them work.
Metadata
Metadata
Assignees
Labels
No labels