<?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 Get featurelayer from the map object in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-featurelayer-from-the-map-object/m-p/325136#M29956</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How can I get featureLayer object from the map? I am using ArcGISDynamicMapServiceLayer to show the map on my screen. I have similar scenario as per the following url. However, I need to search parts/equipment from multiple layers. I am adding feature layers as per user's selection using map.addLayer(new FeatureLayer(...)). Once I find parts/equipment in the radius of given geometry, then I highlight them as per the following url. I need to clear the highlighted equipment in certain scenarios. So, I am using clearSelection() of FeatureLayer. But I am not able to get an instance of featureLayer from the map object. I tried map.getLayer() but it doesn't give me any feature layer. Is it because I constructed map using ArcGISDynamicMapServiceLayer? Do I need to construct map using feature layers in such scenario? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://developers.arcgis.com/javascript/samples/query_buffer/"&gt;http://developers.arcgis.com/javascript/samples/query_buffer/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jun 2014 12:29:48 GMT</pubDate>
    <dc:creator>BhavinSanghani</dc:creator>
    <dc:date>2014-06-24T12:29:48Z</dc:date>
    <item>
      <title>Get featurelayer from the map object</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-featurelayer-from-the-map-object/m-p/325136#M29956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How can I get featureLayer object from the map? I am using ArcGISDynamicMapServiceLayer to show the map on my screen. I have similar scenario as per the following url. However, I need to search parts/equipment from multiple layers. I am adding feature layers as per user's selection using map.addLayer(new FeatureLayer(...)). Once I find parts/equipment in the radius of given geometry, then I highlight them as per the following url. I need to clear the highlighted equipment in certain scenarios. So, I am using clearSelection() of FeatureLayer. But I am not able to get an instance of featureLayer from the map object. I tried map.getLayer() but it doesn't give me any feature layer. Is it because I constructed map using ArcGISDynamicMapServiceLayer? Do I need to construct map using feature layers in such scenario? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://developers.arcgis.com/javascript/samples/query_buffer/"&gt;http://developers.arcgis.com/javascript/samples/query_buffer/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 12:29:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-featurelayer-from-the-map-object/m-p/325136#M29956</guid>
      <dc:creator>BhavinSanghani</dc:creator>
      <dc:date>2014-06-24T12:29:48Z</dc:date>
    </item>
  </channel>
</rss>

