<?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 WMTS bugs &amp;amp;amp; WMTS in PrintTask offset issue in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wmts-bugs-amp-amp-wmts-in-printtask-offset-issue/m-p/161219#M15030</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just includes some public WMTS layers in a javascript app using JS API 3.5: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Url to WMTS:&lt;/SPAN&gt;&lt;A href="http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts?" rel="nofollow noopener noreferrer" target="_blank"&gt;http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts?&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;I did found some small bugs that might be helpful to know about:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Typo error in wmst.js that has been there for a while (&lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/68323-WMTS-sample-not-working...?highlight=wmts" rel="nofollow noopener noreferrer" target="_blank"&gt;read thread&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Error in PrintTask when printing wmts layers. In function "_createOperationalLayers(map)", case "esri.layers.WMTSLayer", the code expects the layer to have an layerInfo array. It does not. So I changed the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Old:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;layer: _3d.layerInfos[0].identifier,
&amp;nbsp;&amp;nbsp; style: _3d.layerInfos[0].style,
&amp;nbsp;&amp;nbsp; format: _3d.layerInfos[0].format,
&amp;nbsp;&amp;nbsp; tileMatrixSet: _3d.layerInfos[0].tileMatrixSet&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;New:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; layer: _3d.layerInfo.identifier,
&amp;nbsp;&amp;nbsp; style: _3d.layerInfo.style,
&amp;nbsp;&amp;nbsp; format: _3d.layerInfo.format,
&amp;nbsp;&amp;nbsp; tileMatrixSet: _3d.layerInfo.tileMatrixSet&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally I could create a PDF using wmts as baselayer, but the wmts layer &lt;/SPAN&gt;&lt;STRONG&gt;offsets&lt;/STRONG&gt;&lt;SPAN&gt; to an ArcGISDynamicMapServiceLayer. Both having the same SpatialReference(EPSG:32633).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to open the data in ArcMap 10.1. But ArcMap did not show any WMTS data at all! Anyone know if this is related to this known bug? (&lt;/SPAN&gt;&lt;A href="http://support.esri.com/en/bugs/nimbus/TklNMDg0ODA2" rel="nofollow noopener noreferrer" target="_blank"&gt;http://support.esri.com/en/bugs/nimbus/TklNMDg0ODA2&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The WMTS I connect to only offers "KVP" as serviceMode. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any known workaround to create print combinding WMTS and ArcGISDynamicMapServiceLayer with no offset??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Attached screendump showing offset. One using WMTS as basemap, the other using ArcGISTiledMapServiceLayer as basemap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]26376[/ATTACH] [ATTACH=CONFIG]26377[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Endre&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 08:28:47 GMT</pubDate>
    <dc:creator>EndreStokseth</dc:creator>
    <dc:date>2021-12-11T08:28:47Z</dc:date>
    <item>
      <title>WMTS bugs &amp;amp; WMTS in PrintTask offset issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wmts-bugs-amp-amp-wmts-in-printtask-offset-issue/m-p/161219#M15030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just includes some public WMTS layers in a javascript app using JS API 3.5: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Url to WMTS:&lt;/SPAN&gt;&lt;A href="http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts?" rel="nofollow noopener noreferrer" target="_blank"&gt;http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts?&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;I did found some small bugs that might be helpful to know about:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Typo error in wmst.js that has been there for a while (&lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/68323-WMTS-sample-not-working...?highlight=wmts" rel="nofollow noopener noreferrer" target="_blank"&gt;read thread&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Error in PrintTask when printing wmts layers. In function "_createOperationalLayers(map)", case "esri.layers.WMTSLayer", the code expects the layer to have an layerInfo array. It does not. So I changed the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Old:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;layer: _3d.layerInfos[0].identifier,
&amp;nbsp;&amp;nbsp; style: _3d.layerInfos[0].style,
&amp;nbsp;&amp;nbsp; format: _3d.layerInfos[0].format,
&amp;nbsp;&amp;nbsp; tileMatrixSet: _3d.layerInfos[0].tileMatrixSet&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;New:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; layer: _3d.layerInfo.identifier,
&amp;nbsp;&amp;nbsp; style: _3d.layerInfo.style,
&amp;nbsp;&amp;nbsp; format: _3d.layerInfo.format,
&amp;nbsp;&amp;nbsp; tileMatrixSet: _3d.layerInfo.tileMatrixSet&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally I could create a PDF using wmts as baselayer, but the wmts layer &lt;/SPAN&gt;&lt;STRONG&gt;offsets&lt;/STRONG&gt;&lt;SPAN&gt; to an ArcGISDynamicMapServiceLayer. Both having the same SpatialReference(EPSG:32633).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to open the data in ArcMap 10.1. But ArcMap did not show any WMTS data at all! Anyone know if this is related to this known bug? (&lt;/SPAN&gt;&lt;A href="http://support.esri.com/en/bugs/nimbus/TklNMDg0ODA2" rel="nofollow noopener noreferrer" target="_blank"&gt;http://support.esri.com/en/bugs/nimbus/TklNMDg0ODA2&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The WMTS I connect to only offers "KVP" as serviceMode. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any known workaround to create print combinding WMTS and ArcGISDynamicMapServiceLayer with no offset??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Attached screendump showing offset. One using WMTS as basemap, the other using ArcGISTiledMapServiceLayer as basemap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]26376[/ATTACH] [ATTACH=CONFIG]26377[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Endre&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:28:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wmts-bugs-amp-amp-wmts-in-printtask-offset-issue/m-p/161219#M15030</guid>
      <dc:creator>EndreStokseth</dc:creator>
      <dc:date>2021-12-11T08:28:47Z</dc:date>
    </item>
  </channel>
</rss>

