Home > Software engineering >  AngularJS osm leaflet - access denied to tiles
AngularJS osm leaflet - access denied to tiles

Time:03-18

I use osm in my AngularJS app and in Google Chrome browser I get the following messages

Access denied to tiles

So I do not have access (any more) to the tiles. Three days ago it worked fine. If I open the application in Firefox everything is fine and works. Is this an adjustment in Google Chrome or how I can find out what I have to do in order to get it work with Google Chrome anymore.

CodePudding user response:

You are not adhering to the tile usage policy. That's why your access denied message links to that policy.

OSM became stricter in enforcing the policy recently.

Could be related to another provider that slashed It's free tier by 99% recently and therefore users flocking to OSM.

As the tile usage policy stats: "OpenStreetMap data is free for everyone to use. Our tile servers are not."

(see: https://operations.osmfoundation.org/policies/tiles/ )

So please follow that policy closely if you use OSM for light use. For use in a business context or an app you shouldn't use those tile servers by the OSMF anyway (see the usage policy that asks you not to hardcode the tile.openstreetmap.org URL into an app). Alternatives can be found here: https://wiki.openstreetmap.org/wiki/Tile_servers

If your angular application is producing only light use and not used for business contexts, check your dev tools in Chrome about the User-Agent and referrer your angular app is sending.

  • Related