NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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's gravatar image

gcalix
11112
accept rate: 0%


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?

permanent link

answered 16 Mar '22, 15:31

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

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.

(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

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×3
×2

question asked: 16 Mar '22, 15:26

question was seen: 821 times

last updated: 17 Mar '22, 07:49

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum