Skip to content

Folium Maps fail to load from Malaysia #1582

@nabilersyad

Description

@nabilersyad

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

  1. If you are not in Malaysia, use a VPN to change your region to Malaysia
  2. 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
  3. You'll notice that either the maps will take almost a minute to load or the prompt 'Trust this Notebook' will appear
  4. 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.
  5. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions