<?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: Zoom is limited to zoom level 15 for Basemap with VectorTileLayer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-is-limited-to-zoom-level-15-for-basemap-with/m-p/1212670#M78717</link>
    <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This is working as expected from what I can see. The Vector tile service &lt;A href="https://sg.geodatenzentrum.de/gdz_basemapde_vektor/tiles/v1/bm_web_de_3857/bm_web_de_3857.json" target="_self"&gt;metadata&lt;/A&gt; has the maxzoom defined as 15. In the JS API,&amp;nbsp;&lt;SPAN&gt;LODs come from the first layer in the map. &amp;nbsp;There are only 15 LODs for this service, hence why you can't pass that zoom level. You can however,&amp;nbsp;disable lods by setting on the &lt;A href="https://next.sites.afd.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#constraints" target="_self"&gt;MapView.constraints.lods&lt;/A&gt; yourself. You&amp;nbsp;can set the LODs by calling &lt;A href="https://next.sites.afd.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileInfo.html#create" target="_self"&gt;TileInfo.create(),&lt;/A&gt;&amp;nbsp;define your own LODs, or&amp;nbsp;set empty lods (constraints.lods = []). If you set it empty then you &amp;nbsp;have to use scales to zoom in&amp;nbsp;and out instead. In any case, the following code snippet shows how to create the LODs to match the ArcGIS online Web Mercator tiling scheme. Once this is&amp;nbsp;set &amp;nbsp;you will be able to zoom past level 15. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let view = new MapView({
  map: map,
  center: [10.0959, 53.454],
  zoom: 14,
  container: "viewDiv",
  constraints: {
    lods: TileInfo.create().lods
  }
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Sep 2022 20:42:57 GMT</pubDate>
    <dc:creator>UndralBatsukh</dc:creator>
    <dc:date>2022-09-14T20:42:57Z</dc:date>
    <item>
      <title>Zoom is limited to zoom level 15 for Basemap with VectorTileLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-is-limited-to-zoom-level-15-for-basemap-with/m-p/1212332#M78707</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to use vector tiles provided by &lt;A title="Basemap" href="https://basemap.de/web-vektor/" target="_blank" rel="noopener"&gt;basemap.de&lt;/A&gt; in a map application based on ArcGIS API for JS v4.24. It basically works great, but I somehow cannot zoom beyond zoom level 15 which corresponds to scale 9027.977410759811. In the constraints of the MapView object, I set maxZoom to 4 and minZoom to 17. The maxZoom parameters seems to work as expected.&lt;/P&gt;&lt;P&gt;My code looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let vectorBasemap = new Basemap({
  title: "Vector Basemap",
  id: "vector_basemap",
  baseLayers: [
    new VectorTileLayer({
      title: "Vector basemap",
      url: "https://sgx.geodatenzentrum.de/gdz_basemapde_vektor/tiles/v1/bm_web_de_3857/bm_web_de_3857.json",
      style: "https://sgx.geodatenzentrum.de/gdz_basemapde_vektor/styles/bm_web_col.json"
    })
  ],
  thumbnailUrl: "https://dummyimage.com/256x256/006600/ffffff.png&amp;amp;text=Vector"
});

// [...]

let view = new MapView({
  map: map,
  center: defaultLocation,
  zoom: 10,
  container: "map-canvas",
  resizeAlign: "top-left",
  constraints: {
    minZoom: 17,
    maxZoom: 4,
  },
  ui: {
    components: []
  }
});

// [...]

view.on("mouse-wheel", function (event) {
  console.log(view.scale + " / " + view.zoom);
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not see similar limitations for vector tiles taken from &lt;A title="Here" href="https://developer.here.com/documentation/vector-tiles-api/dev_guide/topics/examples/mapbox.html" target="_blank" rel="noopener"&gt;Here&lt;/A&gt; maps.&lt;/P&gt;&lt;P&gt;Is there a problem with the style file or do I have to add additional parameters? i simply cannot find the limiting factor here.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 09:47:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-is-limited-to-zoom-level-15-for-basemap-with/m-p/1212332#M78707</guid>
      <dc:creator>jotwe</dc:creator>
      <dc:date>2022-09-14T09:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom is limited to zoom level 15 for Basemap with VectorTileLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-is-limited-to-zoom-level-15-for-basemap-with/m-p/1212670#M78717</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This is working as expected from what I can see. The Vector tile service &lt;A href="https://sg.geodatenzentrum.de/gdz_basemapde_vektor/tiles/v1/bm_web_de_3857/bm_web_de_3857.json" target="_self"&gt;metadata&lt;/A&gt; has the maxzoom defined as 15. In the JS API,&amp;nbsp;&lt;SPAN&gt;LODs come from the first layer in the map. &amp;nbsp;There are only 15 LODs for this service, hence why you can't pass that zoom level. You can however,&amp;nbsp;disable lods by setting on the &lt;A href="https://next.sites.afd.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#constraints" target="_self"&gt;MapView.constraints.lods&lt;/A&gt; yourself. You&amp;nbsp;can set the LODs by calling &lt;A href="https://next.sites.afd.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileInfo.html#create" target="_self"&gt;TileInfo.create(),&lt;/A&gt;&amp;nbsp;define your own LODs, or&amp;nbsp;set empty lods (constraints.lods = []). If you set it empty then you &amp;nbsp;have to use scales to zoom in&amp;nbsp;and out instead. In any case, the following code snippet shows how to create the LODs to match the ArcGIS online Web Mercator tiling scheme. Once this is&amp;nbsp;set &amp;nbsp;you will be able to zoom past level 15. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let view = new MapView({
  map: map,
  center: [10.0959, 53.454],
  zoom: 14,
  container: "viewDiv",
  constraints: {
    lods: TileInfo.create().lods
  }
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 20:42:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-is-limited-to-zoom-level-15-for-basemap-with/m-p/1212670#M78717</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2022-09-14T20:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom is limited to zoom level 15 for Basemap with VectorTileLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-is-limited-to-zoom-level-15-for-basemap-with/m-p/1212818#M78720</link>
      <description>&lt;P&gt;Great, that solved my issue. Thanks a lot for the detailed description!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 07:31:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-is-limited-to-zoom-level-15-for-basemap-with/m-p/1212818#M78720</guid>
      <dc:creator>jotwe</dc:creator>
      <dc:date>2022-09-15T07:31:02Z</dc:date>
    </item>
  </channel>
</rss>

