Select to view content in your preferred language

Restrict map panning to provided extent

645
2
Jump to solution
04-06-2023 12:26 PM
patryks
New Contributor III

Is there a way to block map panning to specified extent? I already implemented solution mentioned here:

https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-mapview-to-stay-within-bo...

http://jsfiddle.net/gh/gist/library/pure/6050806/

but this solution allows to move outside extent and navigates back. I wonder if is there a way to block panning itself so it cannot move outside extent?

0 Kudos
1 Solution
2 Replies