<?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 Obtain Layer Type from list of layers in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/obtain-layer-type-from-list-of-layers/m-p/331025#M30596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In the following example, after I get the layer, how can I tell what layer type it is?&amp;nbsp; Ie Tiled or Dynamic, or Feature? I know I can read it from what I startup the map with, but there must be another way..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Seems like an easy question, but I couldnt find it.. Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;function getLayerProperties() { &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; for(var j = 0; j &amp;lt; map.layerIds.length; j++) { &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var layer = map.getLayer(map.layerIds&lt;J&gt;); &lt;/J&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(layer.id + ' ' + layer.opacity + ' ' + layer.visible); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; } &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Dec 2012 13:19:36 GMT</pubDate>
    <dc:creator>KarenRobine</dc:creator>
    <dc:date>2012-12-07T13:19:36Z</dc:date>
    <item>
      <title>Obtain Layer Type from list of layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/obtain-layer-type-from-list-of-layers/m-p/331025#M30596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In the following example, after I get the layer, how can I tell what layer type it is?&amp;nbsp; Ie Tiled or Dynamic, or Feature? I know I can read it from what I startup the map with, but there must be another way..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Seems like an easy question, but I couldnt find it.. Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;function getLayerProperties() { &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; for(var j = 0; j &amp;lt; map.layerIds.length; j++) { &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var layer = map.getLayer(map.layerIds&lt;J&gt;); &lt;/J&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(layer.id + ' ' + layer.opacity + ' ' + layer.visible); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; } &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 13:19:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/obtain-layer-type-from-list-of-layers/m-p/331025#M30596</guid>
      <dc:creator>KarenRobine</dc:creator>
      <dc:date>2012-12-07T13:19:36Z</dc:date>
    </item>
  </channel>
</rss>

