<?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: ArcGISDynamicMapServiceLayer and ArcGISTiledMapServiceLayer not working together in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgisdynamicmapservicelayer-and/m-p/212475#M19669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It seems that it is indeed the case that a Tiled Map Service Layer must be loaded first so the map can be set up with the proper LOD levels.&amp;nbsp; I set the extents and projection in the javascript so it would not be that causing the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I added the roads first, the aerials second, and then used the reorderLayer method to push the aerials to be the bottom layer and it works fine this way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See Below for a short example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var DallasRoadsTiledMapLayer = new esri.layers.ArcGISTiledMapServiceLayer(DallasRoadsMapService);
ViewerMap.addLayer(DallasRoadsTiledMapLayer);
&amp;nbsp;&amp;nbsp; 

var aerialPhotos = new esri.layers.ArcGISDynamicMapServiceLayer(aerialPhotosMapService);&amp;nbsp; 
ViewerMap.addLayer(aerialPhotos);
ViewerMap.reorderLayer(aerialPhotos, 0);
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 10:26:32 GMT</pubDate>
    <dc:creator>shawndeutch</dc:creator>
    <dc:date>2021-12-11T10:26:32Z</dc:date>
    <item>
      <title>ArcGISDynamicMapServiceLayer and ArcGISTiledMapServiceLayer not working together</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgisdynamicmapservicelayer-and/m-p/212474#M19668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an aerials layer which needs to be the base map layer.&amp;nbsp; It is not cached so it is my ArcGISDynamicMapServiceLayer.&amp;nbsp; I have a roads layer that is cached and is my ArcGISTiledMapServiceLayer.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want the roads to sit on top of the aerials however it seems if I load the Dynamic map layer first than the tiled map layer will not display.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it the case that a Tiled Map Service Layer MUST be loaded first?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 19:04:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgisdynamicmapservicelayer-and/m-p/212474#M19668</guid>
      <dc:creator>shawndeutch</dc:creator>
      <dc:date>2012-07-11T19:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGISDynamicMapServiceLayer and ArcGISTiledMapServiceLayer not working together</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgisdynamicmapservicelayer-and/m-p/212475#M19669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It seems that it is indeed the case that a Tiled Map Service Layer must be loaded first so the map can be set up with the proper LOD levels.&amp;nbsp; I set the extents and projection in the javascript so it would not be that causing the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I added the roads first, the aerials second, and then used the reorderLayer method to push the aerials to be the bottom layer and it works fine this way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See Below for a short example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var DallasRoadsTiledMapLayer = new esri.layers.ArcGISTiledMapServiceLayer(DallasRoadsMapService);
ViewerMap.addLayer(DallasRoadsTiledMapLayer);
&amp;nbsp;&amp;nbsp; 

var aerialPhotos = new esri.layers.ArcGISDynamicMapServiceLayer(aerialPhotosMapService);&amp;nbsp; 
ViewerMap.addLayer(aerialPhotos);
ViewerMap.reorderLayer(aerialPhotos, 0);
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:26:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgisdynamicmapservicelayer-and/m-p/212475#M19669</guid>
      <dc:creator>shawndeutch</dc:creator>
      <dc:date>2021-12-11T10:26:32Z</dc:date>
    </item>
  </channel>
</rss>

