<?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 How to use WMTS from Swisstopo with ArcGISDynamicMapServiceLayer? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-wmts-from-swisstopo-with/m-p/762721#M70663</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like to use a ArcGISDynamicMapServiceLayer and a WMTS_layer from Swisstopo (&lt;A href="http://wmts.geo.admin.ch/" title="http://wmts.geo.admin.ch/"&gt;http://wmts.geo.admin.ch). When &lt;/A&gt;I'm loading the&amp;nbsp; ArcGISDynamicMapServiceLayer first the WMTS Layer will not be loaded. I think there is something about the different LOD's. How can this be solved?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var map;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; require(["esri/map", "esri/layers/WMTSLayer", "dojo/domReady!"], function(Map, WMTSLayer) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var extent = new esri.geometry.Extent(595171.7678435356, 200875.0317500635, 702328.2321564644, 294124.9682499365, new esri.SpatialReference({&lt;/P&gt;&lt;P&gt;&amp;nbsp; "wkid": 21781&lt;/P&gt;&lt;P&gt;&amp;nbsp; }));&lt;/P&gt;&lt;P&gt;&amp;nbsp; map = new Map("map", {&lt;/P&gt;&lt;P&gt;&amp;nbsp; //basemap: "topo",&lt;/P&gt;&lt;P&gt;&amp;nbsp; //center: [7.537513, 47.208331], // longitude, latitude&lt;/P&gt;&lt;P&gt;&amp;nbsp; // zoom: 13&lt;/P&gt;&lt;P&gt;&amp;nbsp; extent: extent&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; esri.config.defaults.io.proxyUrl = "../proxy/PHP/proxy.php";&lt;/P&gt;&lt;P&gt;&amp;nbsp; // esriConfig.defaults.io.alwaysUseProxy = false;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var layerinfo = new esri.layers.WMTSLayerInfo({&lt;/P&gt;&lt;P&gt;&amp;nbsp; identifier: 'ch.swisstopo.pixelkarte-grau'&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&amp;nbsp; var options = {&lt;/P&gt;&lt;P&gt;&amp;nbsp; id: 'swisstopo',&lt;/P&gt;&lt;P&gt;&amp;nbsp; layerInfo: layerinfo&lt;/P&gt;&lt;P&gt;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; var wmts = new WMTSLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://wmts.geo.admin.ch" rel="nofollow" target="_blank"&gt;http://wmts.geo.admin.ch&lt;/A&gt;&lt;SPAN&gt;", options);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; var luftbild = new esri.layers.ArcGISTiledMapServiceLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://quality.ag.ch/geoportal/rest/services/base_ortho2013_full/MapServer" rel="nofollow" target="_blank"&gt;https://quality.ag.ch/geoportal/rest/services/base_ortho2013_full/MapServer&lt;/A&gt;&lt;SPAN&gt;", {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; id: 'luftbild'&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; var giselan = new esri.layers.ArcGISDynamicMapServiceLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://www.ag.ch/geoportal/rest/services/lwag_giselan_app/MapServer" rel="nofollow" target="_blank"&gt;https://www.ag.ch/geoportal/rest/services/lwag_giselan_app/MapServer&lt;/A&gt;&lt;SPAN&gt;", {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; id: 'giselan'&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; map.on("load", function(map){&lt;/P&gt;&lt;P&gt;&amp;nbsp; var i = 10;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; map.addLayer(luftbild);&lt;/P&gt;&lt;P&gt;&amp;nbsp; map.addLayer(wmts);&lt;/P&gt;&lt;P&gt;&amp;nbsp; // map.addLayer(giselan);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Feb 2015 13:24:39 GMT</pubDate>
    <dc:creator>UrsRichard</dc:creator>
    <dc:date>2015-02-11T13:24:39Z</dc:date>
    <item>
      <title>How to use WMTS from Swisstopo with ArcGISDynamicMapServiceLayer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-wmts-from-swisstopo-with/m-p/762721#M70663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like to use a ArcGISDynamicMapServiceLayer and a WMTS_layer from Swisstopo (&lt;A href="http://wmts.geo.admin.ch/" title="http://wmts.geo.admin.ch/"&gt;http://wmts.geo.admin.ch). When &lt;/A&gt;I'm loading the&amp;nbsp; ArcGISDynamicMapServiceLayer first the WMTS Layer will not be loaded. I think there is something about the different LOD's. How can this be solved?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var map;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; require(["esri/map", "esri/layers/WMTSLayer", "dojo/domReady!"], function(Map, WMTSLayer) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var extent = new esri.geometry.Extent(595171.7678435356, 200875.0317500635, 702328.2321564644, 294124.9682499365, new esri.SpatialReference({&lt;/P&gt;&lt;P&gt;&amp;nbsp; "wkid": 21781&lt;/P&gt;&lt;P&gt;&amp;nbsp; }));&lt;/P&gt;&lt;P&gt;&amp;nbsp; map = new Map("map", {&lt;/P&gt;&lt;P&gt;&amp;nbsp; //basemap: "topo",&lt;/P&gt;&lt;P&gt;&amp;nbsp; //center: [7.537513, 47.208331], // longitude, latitude&lt;/P&gt;&lt;P&gt;&amp;nbsp; // zoom: 13&lt;/P&gt;&lt;P&gt;&amp;nbsp; extent: extent&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; esri.config.defaults.io.proxyUrl = "../proxy/PHP/proxy.php";&lt;/P&gt;&lt;P&gt;&amp;nbsp; // esriConfig.defaults.io.alwaysUseProxy = false;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var layerinfo = new esri.layers.WMTSLayerInfo({&lt;/P&gt;&lt;P&gt;&amp;nbsp; identifier: 'ch.swisstopo.pixelkarte-grau'&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&amp;nbsp; var options = {&lt;/P&gt;&lt;P&gt;&amp;nbsp; id: 'swisstopo',&lt;/P&gt;&lt;P&gt;&amp;nbsp; layerInfo: layerinfo&lt;/P&gt;&lt;P&gt;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; var wmts = new WMTSLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://wmts.geo.admin.ch" rel="nofollow" target="_blank"&gt;http://wmts.geo.admin.ch&lt;/A&gt;&lt;SPAN&gt;", options);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; var luftbild = new esri.layers.ArcGISTiledMapServiceLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://quality.ag.ch/geoportal/rest/services/base_ortho2013_full/MapServer" rel="nofollow" target="_blank"&gt;https://quality.ag.ch/geoportal/rest/services/base_ortho2013_full/MapServer&lt;/A&gt;&lt;SPAN&gt;", {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; id: 'luftbild'&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; var giselan = new esri.layers.ArcGISDynamicMapServiceLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://www.ag.ch/geoportal/rest/services/lwag_giselan_app/MapServer" rel="nofollow" target="_blank"&gt;https://www.ag.ch/geoportal/rest/services/lwag_giselan_app/MapServer&lt;/A&gt;&lt;SPAN&gt;", {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; id: 'giselan'&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; map.on("load", function(map){&lt;/P&gt;&lt;P&gt;&amp;nbsp; var i = 10;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; map.addLayer(luftbild);&lt;/P&gt;&lt;P&gt;&amp;nbsp; map.addLayer(wmts);&lt;/P&gt;&lt;P&gt;&amp;nbsp; // map.addLayer(giselan);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 13:24:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-wmts-from-swisstopo-with/m-p/762721#M70663</guid>
      <dc:creator>UrsRichard</dc:creator>
      <dc:date>2015-02-11T13:24:39Z</dc:date>
    </item>
  </channel>
</rss>

