Limit the map at a certain area

SIG Man3 years ago

Is it possible to limit or lock the focus of the map to a certain area?

  • example of application is on farming where the "assets" must only move within the confine of a territory
Anton Tananaev3 years ago

There's a button to follow your asset. But there's no way to limit the map.

SIG Man3 years ago

this feature is available on Google Map (https://developers.google.com/maps/documentation/javascript/reference/map#MapRestriction)
but how can you adapt on Traccar?

SIG Man3 years ago

and even OpenStreetMap has "extent" constrain too (https://openlayers.org/en/latest/examples/extent-constrained.html)
I hope you can consider this feature.

Anton Tananaev3 years ago

If you want this feature to be considered you need to create a feature request for it on GitHub and explain business case and why it would be beneficial for large number of users.

SIG Man3 years ago

Thanks will do.