//creating the map and giving its extent map = new esri.Map("mapDiv", { extent: new esri.geometry.Extent({ xmin: -8493917.422371, ymin: -103006.213374596, xmax: -13493917.422371, ymax: 9260250.68904796, spatialReference: { wkid: 102100 } }), //calling the lods array above. This tells the map which views to use lods: lods }); map.hideZoomSlider();
var map = ...; dojo.connect(map, "onLoad", function() { map.disablePan(); });
map = new esri.Map("map",{ extent:esri.geometry.geographicToWebMercator(initExtent), slider:false });