I made an application using folium maps and specifically using the streamlit_folium component to render my maps.
I’ve noticed for a couple of months now that the maps will often take too long to render(around 1 minute) and sometimes not render at all. (shows the message ‘Make this Notebook Truste to load map’)
What’s baffling is that this problem happens to apps that I didn’t create, apps that I host on Streamlit Cloud and apps that I run locally. But somehow this problem doesn’t occur in one of the laptops that I have.
Any idea what’s going on and if anyone else has encountered it.
Hi @nabilersyad, welcome to the Streamlit community!
What browser/OS are you trying to view from? The streamlit-folium app loads for me in about a second in Chrome, and your train app loads quickly as well.
Hi Randy, thanks for reply and for creating the component!
I’ve tried it on my custom PC that I dualboot Linux and Windows. Both OS take time to load on Chrome, Mozilla, Edge and Brave. I’ve also tested it on my 2015 Macbook Air. using Chrome and Safari. Same issue.
The only place that works fine is my Lenovo X1 work laptop running on Windows and Chrome. So i’m really not sure what’s the problem on my end.
So I’ve discovered that it might be due to my country’s internet (Malaysia) that is somehow preventing Folium maps from being rendered properly. I connected to a VPN, changed my location to Singapore, Canada and USA. They all worked properly. I don’t know the solution to this or if anyone has encountered this kind of situation before. Would appreciate any advice.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.