<?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: Javascript Map Layer Type in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-map-layer-type/m-p/457674#M42233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ken ,&lt;/P&gt;&lt;P&gt;Thanks for the response. I'm not sure if I can get what I want from that, although it could just be me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see that the map.getLayer("baseLayer") Is a dynamic layer using that but I want to see if the map layer listed in layerinfo is of type raster. I can't seem to get to that maybe I'm not hitting the sublayer.&amp;nbsp; My base layer is a esri.layers.ArcGISDynamicMapServiceLayer tied to a rest service for a map that has multiple layers. If I look at the service directly and choose a layer I see :&lt;/P&gt;&lt;H3&gt;Layer: &lt;A href="http://fmt101.tylertech.com/arcgis/rest/services/DemoMap/MapServer/10"&gt;Aerial&lt;/A&gt; (10)&lt;/H3&gt;&lt;P&gt;&lt;STRONG&gt;Name:&lt;/STRONG&gt; Aerial &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Display Field:&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Type: &lt;/STRONG&gt; Raster Layer &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Geometry Type:&lt;/STRONG&gt; null &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Description: &lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Definition Expression: &lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Copyright Text: &lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Default Visibility: true &lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MaxRecordCount: &lt;/STRONG&gt; 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Supported Query Formats: &lt;/STRONG&gt; JSON, AMF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I may just be missing something but I can't seem to get something that tells me that this layer is raster?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Oct 2014 19:32:13 GMT</pubDate>
    <dc:creator>JimBridge</dc:creator>
    <dc:date>2014-10-08T19:32:13Z</dc:date>
    <item>
      <title>Javascript Map Layer Type</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-map-layer-type/m-p/457672#M42231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a map with an unknown number of&amp;nbsp; feature layers and&amp;nbsp; raster layers. I need to be able to identify if a layer is a raster layer or a feature layer.&amp;nbsp; I can't seem to find any where this is exposed. I tried looking in the map.getLayer("baseLayer").layerInfos collection but it doesn't have the type. In the Silverlight API I found this information when the legened was refreshed by checking the layerType field in the layeritems . I can't seem to find anything similar in the javascript api.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 18:22:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-map-layer-type/m-p/457672#M42231</guid>
      <dc:creator>JimBridge</dc:creator>
      <dc:date>2014-10-08T18:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript Map Layer Type</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-map-layer-type/m-p/457673#M42232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use declaredClass property of the layer. Take a look at this &lt;A _jive_internal="true" href="https://community.esri.com/thread/43804"&gt;discussion&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 19:10:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-map-layer-type/m-p/457673#M42232</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-10-08T19:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript Map Layer Type</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-map-layer-type/m-p/457674#M42233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ken ,&lt;/P&gt;&lt;P&gt;Thanks for the response. I'm not sure if I can get what I want from that, although it could just be me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see that the map.getLayer("baseLayer") Is a dynamic layer using that but I want to see if the map layer listed in layerinfo is of type raster. I can't seem to get to that maybe I'm not hitting the sublayer.&amp;nbsp; My base layer is a esri.layers.ArcGISDynamicMapServiceLayer tied to a rest service for a map that has multiple layers. If I look at the service directly and choose a layer I see :&lt;/P&gt;&lt;H3&gt;Layer: &lt;A href="http://fmt101.tylertech.com/arcgis/rest/services/DemoMap/MapServer/10"&gt;Aerial&lt;/A&gt; (10)&lt;/H3&gt;&lt;P&gt;&lt;STRONG&gt;Name:&lt;/STRONG&gt; Aerial &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Display Field:&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Type: &lt;/STRONG&gt; Raster Layer &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Geometry Type:&lt;/STRONG&gt; null &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Description: &lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Definition Expression: &lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Copyright Text: &lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Default Visibility: true &lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MaxRecordCount: &lt;/STRONG&gt; 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Supported Query Formats: &lt;/STRONG&gt; JSON, AMF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I may just be missing something but I can't seem to get something that tells me that this layer is raster?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 19:32:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-map-layer-type/m-p/457674#M42233</guid>
      <dc:creator>JimBridge</dc:creator>
      <dc:date>2014-10-08T19:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript Map Layer Type</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-map-layer-type/m-p/457675#M42234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at this &lt;A href="https://developers.arcgis.com/javascript/jssamples/data_requestLayerInfo.html"&gt;sample&lt;/A&gt; that shows how to get information about a specific layer. While the sample only shows the fields, open up the browser's console to see all the information available (including type) about that layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="request.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/18947_request.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 20:45:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-map-layer-type/m-p/457675#M42234</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-10-08T20:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript Map Layer Type</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-map-layer-type/m-p/457676#M42235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That will do exactly what I need. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 11:38:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-map-layer-type/m-p/457676#M42235</guid>
      <dc:creator>JimBridge</dc:creator>
      <dc:date>2014-10-09T11:38:17Z</dc:date>
    </item>
  </channel>
</rss>

