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!
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=7, IE=9, IE=10">
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/>