Prevent Default Map Tiles
-
We use a custom tile server so that we can geo-fence tiles that are allowed to be viewed on the site (namely France, England and Wales).
However, if you look at the site and inspect the console, you will see a bunch of tiles that are blocked because they’re outside of the allowed area …
[Error] Failed to load resource: the server responded with a status of 403 (Forbidden) (admin-ajax.php, line 0) https://hofnar.com/wp-admin/admin-ajax.php?action=leaflet_tile&subdomain=b&z=12&x=1321&y=1479
It is my suspicion that when
[leaflet-map fitbounds]
is used, the map starts off by loading tiles from a default location?If this is true, is there a way to not load any tiles until all the markers have been set first? Loading all these tiles (or not loading them in our case) will be slowing the page load down un-necessarily.
Thanks,
Oliver
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Prevent Default Map Tiles’ is closed to new replies.