My default location is UK. Client don't want to navigate map to other countries. Is it possible to restrict map to one country?
I had situation what i have to control my map display with a certain area (D.C for example). my approach is watch the view's extend against your restricted extent ( in API 3.1 it will be map's extent-change event). if the new extent is out, move view (or map in 3.x) back to its previous center. Let me know...
Hi Surajit,
If you are using the 3.x version of the api you can set the starting extent of the map using the extent property when creating the instance of the map.
After the map has loaded you can disable the map navigation as outlined in the following reference guide:
Map navigation | Guide | ArcGIS API for JavaScript 3.20
Hope this helps.
Jeff
Hi. A similar question was answered here on geonet.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.