<?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: Multiple Map service in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-map-service/m-p/455372#M42087</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Vinay, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; The problem is the lazy loading of layers.&amp;nbsp; It sounds like one of yours is just taking longer to load so it is loading later.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; You have two options&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Add the map layers together with addLayers([0,1]) instead of adding one at a time.&amp;nbsp; This will guarantee the order.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Specify an index value when you add the layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i.e&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;addLayer(top layer)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;addLayer(bottom layer, 0) forcing it to the bottom&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Mar 2014 17:26:20 GMT</pubDate>
    <dc:creator>JeffPace</dc:creator>
    <dc:date>2014-03-14T17:26:20Z</dc:date>
    <item>
      <title>Multiple Map service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-map-service/m-p/455371#M42086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to use&amp;nbsp; two map service .My second map service should be ahead or infront of first service but it hiding behind first service.I tried to add second service first then so that issue is resolved but problem persist any suggestion&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 16:43:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-map-service/m-p/455371#M42086</guid>
      <dc:creator>vinayb</dc:creator>
      <dc:date>2014-03-14T16:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Map service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-map-service/m-p/455372#M42087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Vinay, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; The problem is the lazy loading of layers.&amp;nbsp; It sounds like one of yours is just taking longer to load so it is loading later.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; You have two options&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Add the map layers together with addLayers([0,1]) instead of adding one at a time.&amp;nbsp; This will guarantee the order.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Specify an index value when you add the layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i.e&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;addLayer(top layer)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;addLayer(bottom layer, 0) forcing it to the bottom&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 17:26:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-map-service/m-p/455372#M42087</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-03-14T17:26:20Z</dc:date>
    </item>
  </channel>
</rss>

