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 |
One Answer:
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 ♦ edited 16 Mar '22, 15:33 |
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.
The rule has always been there but the implementation of the rule has changed over the past weekend so maybe that is the issue.
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?
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.