<?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: Ways to identify an ArcGISDynamicMapServiceLayer / non-Feature Layer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ways-to-identify-an-arcgisdynamicmapservicelayer/m-p/26440#M2268</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use &lt;A href="https://developers.arcgis.com/javascript/jsapi/esri.request-amd.html"&gt;esri.request&lt;/A&gt; on the service to get more information about it, including layer type. Take a look at this &lt;A _jive_internal="true" href="https://community.esri.com/thread/114667"&gt;discussion&lt;/A&gt;. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Oct 2014 13:11:38 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2014-10-10T13:11:38Z</dc:date>
    <item>
      <title>Ways to identify an ArcGISDynamicMapServiceLayer / non-Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ways-to-identify-an-arcgisdynamicmapservicelayer/m-p/26439#M2267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currently I am having difficulties identifying the type of object to use when retrieving layers.&lt;/P&gt;&lt;P&gt;This is done in Javascript / JQuery front end &amp;amp; Java MVC / Hibernate controller mid tier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am hitting a REST service to grab said layer info, majority of the layers are of type "Feature Layers".&lt;/P&gt;&lt;P&gt;Which is loaded from an ARCGis backend and loaded into a new "esri.layers.FeatureLayer" Javascript object.&lt;/P&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var featureLayer = new esri.layers.FeatureLayer(url, { [options] };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This however does not work smoothly with other layers (e.g. in particular "Annotation Layers")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Annotation Layers, I need to use the esri.layers.ArcGISDynamicMapServiceLayer(url) Javascript object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var dynamicLayer = new esri.layers.ArcGISDynamicMapServiceLayer(url);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here lies my problem: I currently have no way to identify if said object is a "Feature Layer" or any other type of Layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if I could load the layer into an ArcGISDynamicMapServiceLayer Object and ues its properties to see if it is indeed a non-Feature Layer, but the methods / fields for the class seem rather lacklustre.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TLDR: Anyone knows of a way of identify an ArcGISDynamicMapServiceLayer layer loaded from REST?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Xavier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 02:13:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ways-to-identify-an-arcgisdynamicmapservicelayer/m-p/26439#M2267</guid>
      <dc:creator>XavierThay</dc:creator>
      <dc:date>2014-10-10T02:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Ways to identify an ArcGISDynamicMapServiceLayer / non-Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ways-to-identify-an-arcgisdynamicmapservicelayer/m-p/26440#M2268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use &lt;A href="https://developers.arcgis.com/javascript/jsapi/esri.request-amd.html"&gt;esri.request&lt;/A&gt; on the service to get more information about it, including layer type. Take a look at this &lt;A _jive_internal="true" href="https://community.esri.com/thread/114667"&gt;discussion&lt;/A&gt;. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 13:11:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ways-to-identify-an-arcgisdynamicmapservicelayer/m-p/26440#M2268</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-10-10T13:11:38Z</dc:date>
    </item>
  </channel>
</rss>

