Friday, 24 May 2019

Restrict pan and zoom in ArcGIS Javascript API?




I'm creating a web map of a university campus.


I have the map functioning, but I don't want to be able to pan off of the basemap, into whitespace.


Do you know of a function that will auto-pan the extent back to the basemap?



Answer



This sample shows one method to monitor the extent and keep the user from panning beyond the established limits.


http://arcscripts.esri.com/details.asp?dbid=16956


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...