<?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: Index of ServiceLayers in a Map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/index-of-servicelayers-in-a-map/m-p/88992#M8130</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi there,&lt;BR /&gt;&lt;BR /&gt;I have a map with serveral different MapServiceLayers (DynamicMapServiceLayers and FeatureLayer). Now I'm looking for indexes of each of this services in the map. So I like to know which is the topmost, the second topmost etc..&lt;BR /&gt;&lt;BR /&gt;With the information about the indexes I can as as example the map.reorderLayer(layer, index) function for reordering. &lt;BR /&gt;&lt;BR /&gt;best regards&lt;BR /&gt;&lt;BR /&gt;Urs&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;All layers has a id property. Even though it is a string type. you could name the layers '0', '1', '2'.... Since javascript is loosely typed, those ids can be easily treated as number with min code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Nov 2011 12:16:48 GMT</pubDate>
    <dc:creator>HemingZhu</dc:creator>
    <dc:date>2011-11-16T12:16:48Z</dc:date>
    <item>
      <title>Index of ServiceLayers in a Map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/index-of-servicelayers-in-a-map/m-p/88990#M8128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a map with serveral different MapServiceLayers (DynamicMapServiceLayers and FeatureLayer). Now I'm looking for indexes of each of this services in the map. So I like to know which is the topmost, the second topmost etc..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With the information about the indexes I can as as example the map.reorderLayer(layer, index) function for reordering. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Urs&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 12:14:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/index-of-servicelayers-in-a-map/m-p/88990#M8128</guid>
      <dc:creator>UrsRichard</dc:creator>
      <dc:date>2011-11-15T12:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Index of ServiceLayers in a Map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/index-of-servicelayers-in-a-map/m-p/88991#M8129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/arcgisdynamicmapservicelayer.htm"&gt;LayerInfo&lt;/A&gt;&lt;SPAN&gt; object to get the sub layer IDs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/featurelayer.htm"&gt;This&lt;/A&gt;&lt;SPAN&gt; documentation talks about LayerID proprty of the feature layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 12:18:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/index-of-servicelayers-in-a-map/m-p/88991#M8129</guid>
      <dc:creator>SanajyJadhav</dc:creator>
      <dc:date>2011-11-15T12:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Index of ServiceLayers in a Map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/index-of-servicelayers-in-a-map/m-p/88992#M8130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi there,&lt;BR /&gt;&lt;BR /&gt;I have a map with serveral different MapServiceLayers (DynamicMapServiceLayers and FeatureLayer). Now I'm looking for indexes of each of this services in the map. So I like to know which is the topmost, the second topmost etc..&lt;BR /&gt;&lt;BR /&gt;With the information about the indexes I can as as example the map.reorderLayer(layer, index) function for reordering. &lt;BR /&gt;&lt;BR /&gt;best regards&lt;BR /&gt;&lt;BR /&gt;Urs&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;All layers has a id property. Even though it is a string type. you could name the layers '0', '1', '2'.... Since javascript is loosely typed, those ids can be easily treated as number with min code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 12:16:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/index-of-servicelayers-in-a-map/m-p/88992#M8130</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2011-11-16T12:16:48Z</dc:date>
    </item>
  </channel>
</rss>

