pokeminer icon indicating copy to clipboard operation
pokeminer copied to clipboard

map tiles don't load

Open rollator opened this issue 8 years ago • 5 comments

When opening the console, I get a lot of these "NetworkError: 403 Forbidden - http://b.tile.osm.org/15/17166/11467.png"

rollator avatar Aug 10 '16 17:08 rollator

Same. I think we got blocked from the provider, because if i go to their website, it doesn't load. Maybe there should be an option in the config to change providers. [https://help.openstreetmap.org/questions/24740/why-am-i-all-of-a-sudden-getting-error-403]

nern9 avatar Aug 10 '16 17:08 nern9

http://wiki.openstreetmap.org/wiki/Tile_usage_policy

Requirements Heavy use (e.g. distributing an app that uses tiles from openstreetmap.org) is forbidden without prior permission from the System Administrators. See below for alternatives. Clearly display license attribution. Do not actively or passively encourage copyright infringement. Calls to /cgi-bin/export may only be triggered by direct end-user action. (For example: "click here to export".) The export call is an expensive (CPU+RAM) function to run and will frequently reject when server is under high load. Highly Recommended: Do not hardcode any URL at tile.openstreetmap.org into an app

oops?

YonderGod avatar Aug 11 '16 01:08 YonderGod

To use a different basemap, read https://developers.arcgis.com/terms/ and register an account Then in /templates/newmap.html replace line L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {opacity: 0.5}).addTo(map); with L.tileLayer('//server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}', {opacity: 0.5}).addTo(map);

YonderGod avatar Aug 11 '16 02:08 YonderGod

Maybe related: I have my website running under ssl As the map uses a http connection (non ssl) to get the tiles from openstreet maps i had to change http://b.tile.osm.org/15/17166/11467.png to https://b.tile.openstreetmaps.org/15/17166/11467.png

Sinxe the certificate is only for the full domain instead of smaller domain.

Baklap4 avatar Aug 12 '16 21:08 Baklap4

It is now possible to change map provider URL in config (0ecdb1a) - please update master branch.

modrzew avatar Aug 15 '16 17:08 modrzew