I found some javascript api 3.5 code on the internet that I have been trying to convert to 4.10 without success. I do admit that I am fairly new to the api and don't know if it is doable in 4.10.
I'm trying to restrict users from panning and zooming outside the extents of the map area that I assign to them.
Here is a working version I found using 3.5: http://jsfiddle.net/gh/gist/library/pure/6050806/
Thanks!
Solved! Go to Solution.
Jason,
See this thread:
https://community.esri.com/thread/229431-getting-mapview-to-stay-within-bounds
Perfect! I just changed it to x,y min and x,y max. I do wish there was a way to mask everything outside the view extents.
Thanks for the quick reply.