whamester / OutsafeBC

1 stars 1 forks source link

Limit the map bounds so that a user can't pan further away from BC #127

Open ReinhardtBotha opened 1 year ago

ReinhardtBotha commented 1 year ago

To reduce the amount of map tile requests and since the app is only focusing on BC.

Info:

https://leafletjs.com/reference.html#map-maxbounds

https://gis.stackexchange.com/questions/179630/setting-bounds-and-making-map-bounce-back-if-moved-away

ReinhardtBotha commented 11 months ago

The map is still able to pan away from BC.