I am unable to load OpenStreetMap in Folium on Jupyter Notebook. It's just some grey rectangle that displays. Anyone knows what may be causing this? I also tried with Leafmaps and IPyleaflet instead of Folium, but nothing is working. Thanks! asked 16 Mar '22, 15:26 gcalix |
The OSM tile usage policy requires: "Valid HTTP User-Agent identifying application. Faking another app’s User-Agent WILL get you blocked." and "DO NOT send no-cache headers. (“Cache-Control: no-cache”, “Pragma: no-cache” etc.)" - is it possible that your setup falls foul of these? answered 16 Mar '22, 15:31 Frederik Ramm ♦ Hmmm... I'm not sure what these are. I'm working in Jupyter Notebook. Is there a way to check if these policies are satisfied? I am able to work and view the OpenStreetMap tiles a day or two ago, but recently started to not work. So I'm not sure what happened.
(16 Mar '22, 15:35)
gcalix
1
The rule has always been there but the implementation of the rule has changed over the past weekend so maybe that is the issue.
(16 Mar '22, 15:45)
Frederik Ramm ♦
Ok I see, probably that's what happened. But I'm not sure what to do. How can I fix it so that I can view the OpenStreetMap tiles again?
(16 Mar '22, 15:50)
gcalix
Edit: I'm currently working on Jupyter Notebook, but I just tested on Google Colab and it seemed to work fine. Then I tried it on Jupyter Notebook on a different browser (Safari) and it works ok. So it seems like the browser that I am currently working on has some problems communicating with Jupyter (currently using Brave). So pretty sure the problem here is Brave.
(16 Mar '22, 16:16)
gcalix
|