<?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: Get Acces to Features of a user added Layer with JavaScript in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/get-acces-to-features-of-a-user-added-layer-with/m-p/1019549#M20221</link>
    <description>&lt;P&gt;I found an easy solution:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var layer = this.map.getLayer(this.map.graphicsLayerIds[1])
var feature = layer.graphics[j].geometry;&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 25 Jan 2021 07:52:48 GMT</pubDate>
    <dc:creator>FlorSch</dc:creator>
    <dc:date>2021-01-25T07:52:48Z</dc:date>
    <item>
      <title>Get Acces to Features of a user added Layer with JavaScript</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/get-acces-to-features-of-a-user-added-layer-with/m-p/1017883#M20193</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;I've got a Problem with getting Acces to the Features of a user added Layer...&lt;/P&gt;&lt;P&gt;What is working:&lt;/P&gt;&lt;P&gt;Adding a Layer with the "Add Data"-Widget.&lt;/P&gt;&lt;P&gt;Getting acces to the Layer with&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var layers = this.map.getLayersVisibleAtScale(this.map.getScale());console.log(layers);
var layer = this.map.getLayer(layers[0].id);console.log(layer);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whats not working:&lt;/P&gt;&lt;P&gt;Getting acces to the features of the imported Layer...&lt;BR /&gt;I think there should be something like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;features = layer.getFeatures();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I asked Google for Answers but it doesnt return usefull results...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 11:14:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/get-acces-to-features-of-a-user-added-layer-with/m-p/1017883#M20193</guid>
      <dc:creator>FlorSch</dc:creator>
      <dc:date>2021-01-19T11:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Get Acces to Features of a user added Layer with JavaScript</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/get-acces-to-features-of-a-user-added-layer-with/m-p/1019549#M20221</link>
      <description>&lt;P&gt;I found an easy solution:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var layer = this.map.getLayer(this.map.graphicsLayerIds[1])
var feature = layer.graphics[j].geometry;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 25 Jan 2021 07:52:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/get-acces-to-features-of-a-user-added-layer-with/m-p/1019549#M20221</guid>
      <dc:creator>FlorSch</dc:creator>
      <dc:date>2021-01-25T07:52:48Z</dc:date>
    </item>
  </channel>
</rss>

