<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Map not zooming to extent specified when using World street map version 10.1 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-zooming-to-extent-specified-when-using/m-p/6358#M590</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can specify the number of LODs that your map has. Take a look at this &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/map_customtilelevels.html"&gt;sample&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 May 2014 13:45:05 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2014-05-21T13:45:05Z</dc:date>
    <item>
      <title>Map not zooming to extent specified when using World street map version 10.1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-zooming-to-extent-specified-when-using/m-p/6355#M587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: helengeb&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to zoom my map to chicago are.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When using arcgis 10.2 base layer for world street(Using REST URL &lt;/SPAN&gt;&lt;A href="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"&gt;http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer&lt;/A&gt;&lt;SPAN&gt;) my map zooms to the expected layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; var chicagoMetroAreaExtent = new esri.geometry.Extent(-87.9468, 41.6006, -87.5248, 42.0416, new esri.SpatialReference({wkid:3857}) );&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; myMap = new esri.Map("mapDiv", { extent: startExtent });&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; var mapServiceURL10_2 = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" rel="nofollow" target="_blank"&gt;http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; var mapServiceURL10_1 = "my 10.1 world street map";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; myMap.setExtent(chicagoMetroAreaExtent);&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; //This zooms correctly to chicagoMetroAreaExtent&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; myMap.addLayer(new esri.layers.ArcGISTiledMapServiceLayer(mapServiceURL10_2));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; //This base layer does not zoom correctly to chicagoMetroAreaExtent&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; // myMap.addLayer(new esri.layers.ArcGISTiledMapServiceLayer(mapServiceURL10_1));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please see the attached images for me details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 17:26:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-zooming-to-extent-specified-when-using/m-p/6355#M587</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-05-16T17:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Map not zooming to extent specified when using World street map version 10.1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-zooming-to-extent-specified-when-using/m-p/6356#M588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just a couple of thoughts...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Make sure the projection of your 10.1 basemap is the same as the rest of the map service (wkid 3857)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) For the white tile issue, make sure you've specified the correct level of tile caching (at all zoom levels, for example) in the service definition.&amp;nbsp; I believe you can go back and change this in the ArcGIS Server manager web interface, but you might have to republish the service through ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;edit: just realized you said you set the Level of Detail already...my apologies.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 16:58:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-zooming-to-extent-specified-when-using/m-p/6356#M588</guid>
      <dc:creator>ScottGunn</dc:creator>
      <dc:date>2014-05-20T16:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Map not zooming to extent specified when using World street map version 10.1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-zooming-to-extent-specified-when-using/m-p/6357#M589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: helengeb&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to change my map to have more zoom levels using ARCGIS Server Manager?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is what I see when I have the tile info when I got to my rest service(Whish seems to have less zoom levels)&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://myserver:6080/arcgis/rest/services/World_Street_Map/MapServer"&gt;http://myserver:6080/arcgis/rest/services/World_Street_Map/MapServer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tile Info:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Height: 256&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Width: 256&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DPI: 96&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Levels of Detail: 10&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Level ID: 0 [ Start Tile, End Tile ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Resolution: 156543.03392800014&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Scale: 5.91657527591555E8&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Level ID: 1 [ Start Tile, End Tile ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Resolution: 78271.51696399994&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Scale: 2.95828763795777E8&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Level ID: 2 [ Start Tile, End Tile ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Resolution: 39135.75848200009&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Scale: 1.47914381897889E8&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Level ID: 3 [ Start Tile, End Tile ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Resolution: 19567.87924099992&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Scale: 7.3957190948944E7&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Level ID: 4 [ Start Tile, End Tile ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Resolution: 9783.93962049996&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Scale: 3.6978595474472E7&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Level ID: 5 [ Start Tile, End Tile ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Resolution: 4891.96981024998&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Scale: 1.8489297737236E7&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Level ID: 6 [ Start Tile, End Tile ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Resolution: 2445.98490512499&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Scale: 9244648.868618&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Level ID: 7 [ Start Tile, End Tile ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Resolution: 1222.992452562495&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Scale: 4622324.434309&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Level ID: 8 [ Start Tile, End Tile ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Resolution: 611.4962262813797&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Scale: 2311162.217155&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Level ID: 9 [ Start Tile, End Tile ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Resolution: 305.74811314055756&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Scale: 1155581.108577&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 21:12:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-zooming-to-extent-specified-when-using/m-p/6357#M589</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-05-20T21:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Map not zooming to extent specified when using World street map version 10.1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-zooming-to-extent-specified-when-using/m-p/6358#M590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can specify the number of LODs that your map has. Take a look at this &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/map_customtilelevels.html"&gt;sample&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 13:45:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-zooming-to-extent-specified-when-using/m-p/6358#M590</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-05-21T13:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Map not zooming to extent specified when using World street map version 10.1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-zooming-to-extent-specified-when-using/m-p/6359#M591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: Rahul_M&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Helengeb,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the issue that you are facing is because of following line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var chicagoMetroAreaExtent = new esri.geometry.Extent(-87.9468, 41.6006, -87.5248, 42.0416, new esri.SpatialReference({wkid:3857}) );
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the values -87.9468, 41.6006, -87.5248, 42.0416 are within range of -180 to +180 so it is geographical coordinate system. Hence spatial reference should be 4326. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are sure if have publish base map in 102100 spatial reference. try using extent value in same spatial reference. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rahul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:15:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-zooming-to-extent-specified-when-using/m-p/6359#M591</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-10T20:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Map not zooming to extent specified when using World street map version 10.1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-zooming-to-extent-specified-when-using/m-p/6360#M592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Helengeb,&lt;BR /&gt;&lt;BR /&gt;I think the issue that you are facing is because of following line:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var chicagoMetroAreaExtent = new esri.geometry.Extent(-87.9468, 41.6006, -87.5248, 42.0416, new esri.SpatialReference({wkid:3857}) );
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;the values -87.9468, 41.6006, -87.5248, 42.0416 are within range of -180 to +180 so it is geographical coordinate system. Hence spatial reference should be 4326. &lt;BR /&gt;&lt;BR /&gt;If you are sure if have publish base map in 102100 spatial reference. try using extent value in same spatial reference. &lt;BR /&gt;&lt;BR /&gt;I hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rahul&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Rahul,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I actually do convert the numbers to 102100(Web mercator)( I have a method for doing that) before I pass them to the map that is what I am doing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var chicagoMetroAreaExtent = new esri.geometry.Extent(ToWebMercator(-87.9468),ToWebMercator( 41.6006), ToWebMercator(-87.5248), ToWebMercator(42.0416), new esri.SpatialReference({wkid:3857}) );&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My issue is with my local deployed REST service not supporting the zooming. my map works fine when I use the ESRI REST service for world street map but it does not work with my local world street map.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:15:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-zooming-to-extent-specified-when-using/m-p/6360#M592</guid>
      <dc:creator>HelenAraya1</dc:creator>
      <dc:date>2021-12-10T20:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Map not zooming to extent specified when using World street map version 10.1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-zooming-to-extent-specified-when-using/m-p/6361#M593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: helengeb&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You can specify the number of LODs that your map has. Take a look at this &lt;A href="https://developers.arcgis.com/javascript/jssamples/map_customtilelevels.html"&gt;sample&lt;/A&gt;.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I did specify the lods in code but I get a white background map. I think the tiles are missing at that zoom level.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 14:30:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-zooming-to-extent-specified-when-using/m-p/6361#M593</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-05-23T14:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Map not zooming to extent specified when using World street map version 10.1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-zooming-to-extent-specified-when-using/m-p/6362#M594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: jeff.pace&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Rahul,&lt;BR /&gt;I actually do convert the numbers to 102100(Web mercator)( I have a method for doing that) before I pass them to the map that is what I am doing&lt;BR /&gt;var chicagoMetroAreaExtent = new esri.geometry.Extent(ToWebMercator(-87.9468),ToWebMercator( 41.6006), ToWebMercator(-87.5248), ToWebMercator(42.0416), new esri.SpatialReference({wkid:3857}) );&lt;BR /&gt;&lt;BR /&gt;My issue is with my local deployed REST service not supporting the zooming. my map works fine when I use the ESRI REST service for world street map but it does not work with my local world street map.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you shouldnt be sending the individual values to webmercator.&amp;nbsp; You can to send the pair.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 19:39:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-not-zooming-to-extent-specified-when-using/m-p/6362#M594</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-05-23T19:39:14Z</dc:date>
    </item>
  </channel>
</rss>

