pokeminer
pokeminer copied to clipboard
map tiles don't load
When opening the console, I get a lot of these "NetworkError: 403 Forbidden - http://b.tile.osm.org/15/17166/11467.png"
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]
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?
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);
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.
It is now possible to change map provider URL in config (0ecdb1a) - please update master branch.