<?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 JS API:  Cannot zoom to max level after changing basemap in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-cannot-zoom-to-max-level-after-changing/m-p/259956#M24055</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was wondering if anyone else has encountered this and has a workaround:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a map with the javascript API which uses the basemapGallery widget.&amp;nbsp; The default map is dark-gray, which has a max zoom level of 16.&amp;nbsp; If the user changes the basemap to Imagery with Labels ("hybrid"), they still can only zoom to a max level of 16, and not to 19, which the hybrid map supports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I set the default map to hybrid, the max zoom level works as it should.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Setting the maxZoom when initiating the map does not make a difference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Apr 2015 17:40:40 GMT</pubDate>
    <dc:creator>MichaelSchnack</dc:creator>
    <dc:date>2015-04-21T17:40:40Z</dc:date>
    <item>
      <title>JS API:  Cannot zoom to max level after changing basemap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-cannot-zoom-to-max-level-after-changing/m-p/259956#M24055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was wondering if anyone else has encountered this and has a workaround:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a map with the javascript API which uses the basemapGallery widget.&amp;nbsp; The default map is dark-gray, which has a max zoom level of 16.&amp;nbsp; If the user changes the basemap to Imagery with Labels ("hybrid"), they still can only zoom to a max level of 16, and not to 19, which the hybrid map supports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I set the default map to hybrid, the max zoom level works as it should.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Setting the maxZoom when initiating the map does not make a difference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 17:40:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-cannot-zoom-to-max-level-after-changing/m-p/259956#M24055</guid>
      <dc:creator>MichaelSchnack</dc:creator>
      <dc:date>2015-04-21T17:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: JS API bug:  Cannot zoom to max level after changing basemap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-cannot-zoom-to-max-level-after-changing/m-p/259957#M24056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If you are going to use a basemap that does not have all the LODs that other basemaps do as the default then you need to manually add the LODs to the maps constructor argument:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/map-amd.html#map1" title="https://developers.arcgis.com/javascript/jsapi/map-amd.html#map1"&gt;Map | API Reference | ArcGIS API for JavaScript&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look for the LOD section of the maps constructor option properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get the LODs json string from the basemap service like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer?f=pjson" title="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer?f=pjson"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer?f=pjson&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 17:56:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-cannot-zoom-to-max-level-after-changing/m-p/259957#M24056</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-04-21T17:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: JS API bug:  Cannot zoom to max level after changing basemap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-cannot-zoom-to-max-level-after-changing/m-p/259958#M24057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That did the trick Robert, thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 18:31:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-cannot-zoom-to-max-level-after-changing/m-p/259958#M24057</guid>
      <dc:creator>MichaelSchnack</dc:creator>
      <dc:date>2015-04-21T18:31:05Z</dc:date>
    </item>
  </channel>
</rss>

