I have 2 layers.The bottom layer is the "World_Street_Map" tiled map service.The top layer is a dynamic layer covers a portion of New York State.I set the initial extent to the extent of the dynamic layer.If I zoom all the way out with the ZoomSlider or with "navToolbar.zoomToFullExtent()" it zooms to the entire world. How can I constrain the map so the maximum extent is equal to the extent of the dynamic layer?
var extentMap;
extentMap = new esri.geometry.Extent({xmin:-8478000, ymin:5014590, xmax:-8099500, ymax:5245000, spatialReference:{wkid:102100}});
map = new esri.Map("mapDiv", { extent: extentMap, nav:true});