<?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: View.zoom stuck on -1 for WMTS layer on API 4.22 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-zoom-stuck-on-1-for-wmts-layer-on-api-4-22/m-p/1133311#M75898</link>
    <description>&lt;P&gt;I just want to add that after adding the Tileinfo.create() I have the exact same issue as another user regarding the zoom property in Mapview that is reported in "Issue with 4.22 and zoom property". There is definitely something fishy going on with zoom/LODs for some layers in 4.22...&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jan 2022 12:05:00 GMT</pubDate>
    <dc:creator>JanHellenberg</dc:creator>
    <dc:date>2022-01-13T12:05:00Z</dc:date>
    <item>
      <title>View.zoom stuck on -1 for WMTS layer on API 4.22</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-zoom-stuck-on-1-for-wmts-layer-on-api-4-22/m-p/1132839#M75878</link>
      <description>&lt;P&gt;Recently updated API version from 4.19 to 4.22 and as a result, my WMTS-layer zoom-property is stuck on -1 which of course has other consequences. &amp;nbsp;This has been working fine for a long time with both 4.16 and 4.19. If I go back to 4.19 it starts working again. The code is pretty straightforward and I can see no changes in the documentation that would affect this. JS console says nothing.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;const MyLayer&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;= &lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;WMTSLayer&lt;/SPAN&gt;&lt;SPAN&gt;({&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;url&lt;/SP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lt;/SPAN&gt;&lt;SPAN&gt; {&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; wkid&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;3857&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;},&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;})&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So, what is going on here? Why are the zoom levels missing from my WMTS-layer in 4.22 but not 4.19?&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 12 Jan 2022 13:12:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-zoom-stuck-on-1-for-wmts-layer-on-api-4-22/m-p/1132839#M75878</guid>
      <dc:creator>JanHellenberg</dc:creator>
      <dc:date>2022-01-12T13:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: View.zoom stuck on -1 for WMTS layer on API 4.22</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-zoom-stuck-on-1-for-wmts-layer-on-api-4-22/m-p/1132935#M75883</link>
      <description>&lt;P&gt;Can you provide a service URL to testify against? Not seeing this behavior with current ones used in samples, could be something in how the capabilities are parsed for some services.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 16:23:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-zoom-stuck-on-1-for-wmts-layer-on-api-4-22/m-p/1132935#M75883</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2022-01-12T16:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: View.zoom stuck on -1 for WMTS layer on API 4.22</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-zoom-stuck-on-1-for-wmts-layer-on-api-4-22/m-p/1132963#M75884</link>
      <description>&lt;P&gt;My URL is with key authorization but actually I AM seeing the same problem in this sample:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/layers-wmts/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/layers-wmts/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Adding the following after view.when will show view.zoom=-1 and no effectiveLODs.&lt;/P&gt;&lt;P&gt;view.watch('scale', function (newScale) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp;console.log('Scale: ', view.scale)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;console.log('Zoom: ', view.zoom)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;console.log('Resolution: ', view.resolution)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;console.log('Effective LODS: ', view.constraints.effectiveLODs)&lt;BR /&gt;})&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 16:53:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-zoom-stuck-on-1-for-wmts-layer-on-api-4-22/m-p/1132963#M75884</guid>
      <dc:creator>JanHellenberg</dc:creator>
      <dc:date>2022-01-12T16:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: View.zoom stuck on -1 for WMTS layer on API 4.22</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-zoom-stuck-on-1-for-wmts-layer-on-api-4-22/m-p/1132966#M75885</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please try setting &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#constraints" target="_self"&gt;MapView.constraints.lods&lt;/A&gt;&amp;nbsp; by calling &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileInfo.html#create" target="_self"&gt;TileInfo.create()&lt;/A&gt; method in your app? I tested this and it works. Also, I noticed that it does not work for me in 4.19. In any case, we will create an issue on our side to set the MapView's tileInfo when wmtslayer is added.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check out &lt;A href="https://codepen.io/U_B_U/pen/jOGQKEd?editors=100" target="_self"&gt;this test app&lt;/A&gt; to see how to set the MapView's tileInfo and how this sets the zoom levels accordingly. In the test app, I am setting the LODs to ArcGIS online tiling info. It is documented in TileInfo.create doc referenced above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 16:56:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-zoom-stuck-on-1-for-wmts-layer-on-api-4-22/m-p/1132966#M75885</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2022-01-12T16:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: View.zoom stuck on -1 for WMTS layer on API 4.22</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-zoom-stuck-on-1-for-wmts-layer-on-api-4-22/m-p/1133307#M75897</link>
      <description>&lt;P&gt;Thank you, it worked great!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 11:53:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-zoom-stuck-on-1-for-wmts-layer-on-api-4-22/m-p/1133307#M75897</guid>
      <dc:creator>JanHellenberg</dc:creator>
      <dc:date>2022-01-13T11:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: View.zoom stuck on -1 for WMTS layer on API 4.22</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-zoom-stuck-on-1-for-wmts-layer-on-api-4-22/m-p/1133311#M75898</link>
      <description>&lt;P&gt;I just want to add that after adding the Tileinfo.create() I have the exact same issue as another user regarding the zoom property in Mapview that is reported in "Issue with 4.22 and zoom property". There is definitely something fishy going on with zoom/LODs for some layers in 4.22...&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 12:05:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/view-zoom-stuck-on-1-for-wmts-layer-on-api-4-22/m-p/1133311#M75898</guid>
      <dc:creator>JanHellenberg</dc:creator>
      <dc:date>2022-01-13T12:05:00Z</dc:date>
    </item>
  </channel>
</rss>

