AnsweredAssumed Answered

Map not zooming to extent specified when using World street map version 10.1

Question asked by geonetadmin on May 16, 2014
Latest reply on May 23, 2014 by geonetadmin
Original User: helengeb

I am trying to zoom my map to chicago are.
When using arcgis 10.2 base layer for world street(Using REST URL my map zooms to the expected layer.

BUT when I use arcgis 10.1 world street map base layer(Which I deployed my self using ARCGIS for server 10.1 from the 10.1 sd file) my map does not zoom to the place. It just shows me areas outiside of the extent plus my slider is on the top which makes it impossible to zoom even using the slider.

Here is my code
var chicagoMetroAreaExtent = new esri.geometry.Extent(-87.9468, 41.6006, -87.5248, 42.0416, new esri.SpatialReference({wkid:3857}) );
  myMap = new esri.Map("mapDiv", { extent: startExtent });
  var mapServiceURL10_2 = "";
   var mapServiceURL10_1 = "my 10.1 world street map";

  //This zooms correctly to chicagoMetroAreaExtent
  myMap.addLayer(new esri.layers.ArcGISTiledMapServiceLayer(mapServiceURL10_2));
  //This base layer does not zoom correctly to chicagoMetroAreaExtent
// myMap.addLayer(new esri.layers.ArcGISTiledMapServiceLayer(mapServiceURL10_1));

Please see the attached images for me details.

I even tried to specify the lods for the map when using the 10.1 base layer for world street map but it gives me white background as shown in picture.