This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Fetching maps that are on my multiple sites have stopped working

0

Map loading on the web stops working, shows only gray area, see n image. Thank you in advance for your help ...

alt text

asked 10 Feb '20, 10:04

Du%C5%A1an's gravatar image

Dušan
11112
accept rate: 0%

2

Can you provide a bit more information? What you have said so far is a bit like saying to someone "my car doesn't start" and attaching a photograph from 100m away...

(10 Feb '20, 10:18) SomeoneElse ♦

Hi, I have noticed that when I access the page from another source (another ip address) the map loads fine. Is it possible that my ip address is blocked?

Thank you in advance for your help...

(10 Feb '20, 11:52) Dušan
1

You should check in the browser console the URL you're using for tiles, and the status response you get.

It's possible to get blocked for heavy usage, both by IP and User Agent headers.

Please check that you're adhering to the Tile Usage Policy.

(10 Feb '20, 12:14) H_mlet

One Answer:

0

I have the same issue in some prod websites.

At the moment, we use HTTP Protocol. If I try to reach tiles osm server “http://a.tile.osm.org/xx/xxxxx/xxxxx.png” , then I get a "Server not found" error.

Should I change the library in order to use HTTPs?

answered 10 Feb '20, 10:56

jasa_'s gravatar image

jasa_
111
accept rate: 0%

1

Using tile.osm.org URLs on a production machine is a bad idea as there's no guarantee of uptime. See here for more details.

Notwithstanding that:

  • OSM tileserver URLs have been https-only for some time now. Depending on how you use them, redirection may not occur.

  • you're using a shortened version of the URL. A valid tile is https://tile.openstreetmap.org/9/253/166.png - try fixing your links to use that and see if it fixes your problem.

(10 Feb '20, 11:04) SomeoneElse ♦

Source code available on GitHub .