<?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 layer from webmap in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104762#M9600</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're getting an error because the hitTest is just returning the Township layer when you move the mouse over it. Since filter result is empty, trying to get the first element in its array gives you the error.&amp;nbsp; Check the length of the filter result before getting its graphic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; graphic&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;// Get the Trail graphics only&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;response&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;results&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;length&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
  &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; test &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; response&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;results&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;filter&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;result&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; result&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;graphic&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layer &lt;SPAN class="operator token"&gt;===&lt;/SPAN&gt; parksLayer&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;test&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;length &lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    graphic &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; test&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;graphic&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your buffer problem is in line 195, trying to look for the OBJECTID attribute. This feature only has the FID attribute, so the line should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;!&lt;/SPAN&gt;activeGraphic &lt;SPAN class="operator token"&gt;||&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;activeGraphic&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;attributes&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;FID &lt;SPAN class="operator token"&gt;!==&lt;/SPAN&gt; graphic&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;attributes&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;FID&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 06:23:53 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2021-12-11T06:23:53Z</dc:date>
    <item>
      <title>get layer from webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104748#M9586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to learn the JS API.&amp;nbsp; I've been following through the tutorials and am currently on &lt;A href="https://developers.arcgis.com/javascript/latest/guide/buffer-and-intersect-geometry/"&gt;buffer and intersect geometry&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I follow along sometimes I try to adjust things to further learn.&amp;nbsp; In this case, instead of using the example which uses a featureLayer, I want to do the same thing but on a layer found within a webMap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I am replacing this line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN class="" style="color: #aa0d91; font-weight: bold;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #f8f8f8;"&gt; featureLayer = &lt;/SPAN&gt;&lt;SPAN class="" style="color: #aa0d91; font-weight: bold;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #f8f8f8;"&gt; FeatureLayer({ &lt;/SPAN&gt;&lt;SPAN class="" style="color: #4c4c4c;"&gt;url&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #f8f8f8;"&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"https://services3.arcgis.com/GVgbJbqm8hXASVYi/arcgis/rest/services/Trails_Styled/FeatureServer/0"&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #f8f8f8;"&gt; }); map.add(featureLayer);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var webmap = new WebMap({&lt;BR /&gt; portalItem: {&lt;BR /&gt; id: "***mywebmapid***"&lt;BR /&gt; }&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;var view = new MapView({&lt;BR /&gt; container: "viewDiv",&lt;BR /&gt; //*** UPDATE ***//&lt;BR /&gt; map: webmap&lt;BR /&gt; //center: [-118.80500,34.02700],&lt;BR /&gt; //zoom: 13&lt;BR /&gt; });&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;then instead of using featureLayer in the function, I am trying to use a layer withing the webMap.&amp;nbsp; I tried this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var parksLayer = webmap.findLayerById("958f6534812a4407925a2a18a640b841");&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;and changed the one line to read:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;return (result.graphic.layer === parksLayer);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I'm getting an error that says:&amp;nbsp;&amp;nbsp;Uncaught (in promise) TypeError: Cannot read property 'graphic' of undefined&lt;BR /&gt; at&amp;nbsp; (pointing to this line&amp;nbsp; &amp;nbsp;})[0].graphic; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what I'm doing wrong here.&amp;nbsp; Can anyone point me in the right direction?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jun 2020 22:12:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104748#M9586</guid>
      <dc:creator>TroyBingaman</dc:creator>
      <dc:date>2020-06-06T22:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: get layer from webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104749#M9587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A way you can find an individual layer within a WebMap is to use the allLayers property. The allLayers property is actually a Collection of all the layers in the WebMap which means all&amp;nbsp;basemap layers, operational layers, ground layers as well as group layers and their children layers are included.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the alLayers property is a Collection you can use the find method to find and return a layer by name. Below is the documentation on that property along with a sample on how to use it to find a layer by name:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#allLayers" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#allLayers"&gt;WebMap | ArcGIS API for JavaScript 4.15&lt;/A&gt;&amp;nbsp;(This link takes you directly to the allLayers property.)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2020 14:54:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104749#M9587</guid>
      <dc:creator>ChristopherKoenig</dc:creator>
      <dc:date>2020-06-08T14:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: get layer from webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104750#M9588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply.&amp;nbsp; I adjusted the script to use allLayers but am still getting the same error.&amp;nbsp; Here is the full applicable section of the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var parksLayer = webmap.allLayers.find(function(layer) {&lt;BR /&gt; return layer.title === "Parks";&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;var activeGraphic;&lt;/P&gt;&lt;P&gt;function findNearestGraphic(event) {&lt;BR /&gt; return view.hitTest(event).then(function (response) {&lt;BR /&gt; var graphic;&lt;BR /&gt; // Get the Trail graphics only&lt;BR /&gt; if (response.results.length) {&lt;BR /&gt; graphic = response.results.filter(function (result) {&lt;BR /&gt; return (result.graphic.layer === parksLayer);&lt;BR /&gt; })[0].graphic;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*************************************************************&lt;BR /&gt; }&lt;BR /&gt; // Only return new graphics are found&lt;BR /&gt; if (graphic) {&lt;BR /&gt; if (!activeGraphic || (activeGraphic.attributes.OBJECTID !== graphic.attributes.OBJECTID)) {&lt;BR /&gt; return graphic;&lt;BR /&gt; } else {&lt;BR /&gt; return null;&lt;BR /&gt; }&lt;BR /&gt; } else {&lt;BR /&gt; return null;&lt;BR /&gt; }&lt;BR /&gt; });&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;var bufferGraphic;&lt;/P&gt;&lt;P&gt;function drawBuffer(bufferGeometry) {&lt;BR /&gt; view.graphics.remove(bufferGraphic);&lt;BR /&gt; bufferGraphic = new Graphic({&lt;BR /&gt; geometry: bufferGeometry,&lt;BR /&gt; symbol: {&lt;BR /&gt; type: "simple-fill",&lt;BR /&gt; color: "rgba(0,0,0,0)",&lt;BR /&gt; outline: {&lt;BR /&gt; color: "rgba(0,0,0,.5)",&lt;BR /&gt; width: 1&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; });&lt;BR /&gt; view.graphics.add(bufferGraphic);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;view.on("pointer-move", function(event){&lt;BR /&gt; findNearestGraphic(event).then(function(graphic){&lt;BR /&gt; if (graphic) {&lt;BR /&gt; activeGraphic = graphic;&lt;BR /&gt; var buffer = geometryEngine.geodesicBuffer(activeGraphic.geometry, .25, "miles");&lt;BR /&gt; drawBuffer(buffer);&lt;BR /&gt; }&lt;BR /&gt; });&lt;BR /&gt; });&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The line with the error is marked with all the asterisks.&amp;nbsp; I do not understand what that line is doing exactly so I can't figure out what's wrong and why it doesn't like me using a webmap layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, was there anything wrong with using findLayerById instead of allLayers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2020 16:48:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104750#M9588</guid>
      <dc:creator>EricGardecki1</dc:creator>
      <dc:date>2020-06-08T16:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: get layer from webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104751#M9589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might need to load() the layer first, or try a more asynchronous approach like in this example:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=layers-portal" title="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=layers-portal"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2020 22:15:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104751#M9589</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2020-06-09T22:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: get layer from webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104752#M9590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think I understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if I use your example, I would then have the layer in the map twice no?&amp;nbsp; I have a webmap pulled in with all its layers, then would load one individual layer again?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The point of what I'm trying to do is learn how to work with the layers within the webmap as opposed to bringing in individual layers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this make sense?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2020 19:51:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104752#M9590</guid>
      <dc:creator>EricGardecki1</dc:creator>
      <dc:date>2020-06-10T19:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: get layer from webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104753#M9591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This error:&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; "&gt;Uncaught (in promise) TypeError: Cannot read property 'graphic' of undefined&lt;/EM&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;EM&gt;at&amp;nbsp; (pointing to this line&amp;nbsp; &amp;nbsp;})[0].graphic; )&lt;/EM&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;is telling you that your hitTest result is not defined. Looking at the code, you are only getting the first result returned from the hitTest. Instead you should loop through all results came back from the hitTest until you find the feature you are looking for. See the example below.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;hitTest&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;event&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;then&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;response&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
  &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; results &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; response&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;results&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="comment token"&gt;// Check if a feature from the featurelayer was clicked on&lt;/SPAN&gt;
  results&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;forEach&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;result&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
   &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;result&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;graphic &lt;SPAN class="operator token"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; result&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;graphic&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layer &lt;SPAN class="operator token"&gt;===&lt;/SPAN&gt; featureLayer&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
      &lt;SPAN class="comment token"&gt;// do something&lt;/SPAN&gt;
   &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
  &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=sketch-update-validation" rel="nofollow noopener noreferrer" target="_blank"&gt;This sdk&lt;/A&gt; sample shows you how to loop through results of hittest.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;-Undral&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:23:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104753#M9591</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2021-12-11T06:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: get layer from webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104754#M9592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/351604"&gt;Troy Bingaman&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;Before you go for your hitTest, it actually needs your screen point to check what graphic it is, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a hunch that its not able to identify the graphics and hence the successive code is failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your finNearestGraphic(event) function, create a screenPoint object and pass that for the hitTest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;function findNearestGraphic(event) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var screenPoint = {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; x: event.x,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; y: event.y&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; };&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;return view.hitTest(&lt;STRONG&gt;screenPoint&lt;/STRONG&gt;).then(function (response) {&lt;/SPAN&gt;&lt;BR style="background-color: #f6f6f6;" /&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;var graphic;&lt;/SPAN&gt;&lt;BR style="background-color: #f6f6f6;" /&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;if (response.results.length) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;//Existing Code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;//Existing Code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have achieved the same in another application and above was my approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing is to ensure that the view is loaded before even the mouse actions, so you could encapsulate the whole in&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;view.when(function() {&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//Code&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2020 11:33:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104754#M9592</guid>
      <dc:creator>GeorgeAbraham</dc:creator>
      <dc:date>2020-06-11T11:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: get layer from webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104755#M9593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/51882"&gt;Undral Batsukh&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;The Array.filter() will internally loop through all the elements and return you the filtered value and we just need the first result so that piece of code is fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can do the same thing via forEach but its a more ES6 simplified code to write. The issue wouldn't be with that code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2020 11:35:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104755#M9593</guid>
      <dc:creator>GeorgeAbraham</dc:creator>
      <dc:date>2020-06-11T11:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: get layer from webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104756#M9594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The code I am using is straight out of the api tutorial.&amp;nbsp; The only adjustment I am making is to reference a layer within a webMap rather than a layer added via FeatureLayer.&amp;nbsp; Using the code as-is from the tutorial works just fine so I do not believe the problem would lie in the screen point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to imagine it isn't finding the layer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried wrapping the applicable code in the view.when but I still receive the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.&amp;nbsp; This topic was posted by me.&amp;nbsp; I was accidentally logged in as another user.&amp;nbsp;&amp;nbsp;Feel free to tag me instead of that user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2020 12:55:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104756#M9594</guid>
      <dc:creator>EricGardecki1</dc:creator>
      <dc:date>2020-06-11T12:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: get layer from webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104757#M9595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also tried the screen point suggestion and no change.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2020 13:01:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104757#M9595</guid>
      <dc:creator>EricGardecki1</dc:creator>
      <dc:date>2020-06-11T13:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: get layer from webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104758#M9596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this will help.&amp;nbsp; The full code I am using currently:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://codepen.io/egardecki/pen/OJMNyxz?editors=1000" title="https://codepen.io/egardecki/pen/OJMNyxz?editors=1000"&gt;https://codepen.io/egardecki/pen/OJMNyxz?editors=1000&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2020 13:08:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104758#M9596</guid>
      <dc:creator>EricGardecki1</dc:creator>
      <dc:date>2020-06-11T13:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: get layer from webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104759#M9597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/335824"&gt;Eric Gardecki&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the codepen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have fixed the code for you - atleast till the part of getting the Park Layer and the graphic selection, however, it is throwing error for&amp;nbsp;&lt;STRONG style="background-color: #f6f6f6;"&gt;geometryEngine&lt;/STRONG&gt; not being declared - didn't dig further on this, but I believe you can take this further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Highlighted in &lt;STRONG&gt;BOLD&lt;/STRONG&gt; are the changes I made:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt; &amp;lt;head&amp;gt;&lt;BR /&gt; &amp;lt;meta charset="utf-8"&amp;gt;&lt;BR /&gt; &amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no"&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;ArcGIS JavaScript Tutorials: Create a JavaScript starter app&amp;lt;/title&amp;gt;&lt;BR /&gt; &amp;lt;style&amp;gt;&lt;BR /&gt; html, body {&lt;BR /&gt; padding: 0;&lt;BR /&gt; margin: 0;&lt;BR /&gt; height: 100%;&lt;BR /&gt; width: 100%;&lt;BR /&gt; }&lt;BR /&gt; #viewDiv {&lt;BR /&gt; padding: 0;&lt;BR /&gt; height: 100%;&lt;BR /&gt; width: 100%;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;#legendWidget {&lt;BR /&gt; position: absolute;&lt;BR /&gt; right:0;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;lt;/style&amp;gt;&lt;BR /&gt; &amp;lt;link rel="stylesheet" href="https://js.arcgis.com/4.15/esri/themes/light/main.css"&amp;gt;&lt;BR /&gt; &amp;lt;script src="https://js.arcgis.com/4.15/"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;BR /&gt; require([&lt;BR /&gt; "esri/WebMap",&lt;BR /&gt; "esri/views/MapView",&lt;BR /&gt; "esri/widgets/BasemapToggle",&lt;BR /&gt; "esri/widgets/Legend",&lt;BR /&gt; "esri/widgets/ScaleBar",&lt;BR /&gt; "esri/widgets/Expand",&lt;BR /&gt; "esri/layers/GraphicsLayer",&lt;BR /&gt; "esri/widgets/Locate",&lt;BR /&gt; "esri/widgets/Track",&lt;BR /&gt; "esri/Graphic",&lt;BR /&gt; "esri/widgets/Compass"&lt;BR /&gt; ], function(WebMap, MapView, BasemapToggle, Legend, ScaleBar, Expand, GraphicsLayer, Locate, Track, Graphic, Compass) {&lt;/P&gt;&lt;P&gt;var webmap = new WebMap({&lt;BR /&gt; portalItem: {&lt;BR /&gt; id: "af2ccc6638624fa089548b1a0a8fdb45"&lt;BR /&gt; }&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;var view = new MapView({&lt;BR /&gt; container: "viewDiv",&lt;BR /&gt; //*** UPDATE ***//&lt;BR /&gt; map: webmap&lt;BR /&gt; //center: [-118.80500,34.02700],&lt;BR /&gt; //zoom: 13&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;var basemapToggle = new BasemapToggle({&lt;BR /&gt; view: view,&lt;BR /&gt; nextBasemap: "satellite"&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; view.ui.add(basemapToggle, "bottom-right");&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; var legend = new Legend({&lt;BR /&gt; container: document.createElement("div"),&lt;BR /&gt; view: view&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;// view.ui.add(legend, "top-right");&lt;/P&gt;&lt;P&gt;var scalebar = new ScaleBar({&lt;BR /&gt; view: view&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;view.ui.add(scalebar, "bottom-left");&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; legendExpand = new Expand({&lt;BR /&gt; expandIconClass: "esri-icon-layer-list", // see https://developers.arcgis.com/javascript/latest/guide/esri-icon-font/&lt;BR /&gt; expandTooltip: "Legend", // optional, defaults to "Expand" for English locale&lt;BR /&gt; view: view,&lt;BR /&gt; content: legend.domNode&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;view.ui.add(legendExpand, "top-right");&lt;/P&gt;&lt;P&gt;var coordsWidget = document.createElement("div");&lt;BR /&gt; coordsWidget.id = "coordsWidget";&lt;BR /&gt; coordsWidget.className = "esri-widget esri-component";&lt;BR /&gt; coordsWidget.style.padding = "7px 15px 5px";&lt;/P&gt;&lt;P&gt;view.ui.add(coordsWidget, "bottom-right");&lt;/P&gt;&lt;P&gt;function showCoordinates(pt) {&lt;BR /&gt; var coords = "Lat/Lon " + pt.latitude.toFixed(3) + " " + pt.longitude.toFixed(3) +&lt;BR /&gt; " | Scale 1:" + Math.round(view.scale) +&lt;BR /&gt; " | Zoom " + view.zoom;&lt;BR /&gt; coordsWidget.innerHTML = coords;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;view.watch("stationary", function(isStationary) {&lt;BR /&gt; showCoordinates(view.center);&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;view.on("pointer-move", function(evt) {&lt;BR /&gt; showCoordinates(view.toMap({ x: evt.x, y: evt.y }));&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;// var locate = new Locate({&lt;BR /&gt; // view: view,&lt;BR /&gt; // useHeadingEnabled: false,&lt;BR /&gt; // goToOverride: function(view, options) {&lt;BR /&gt; // options.target.scale = 1500; // Override the default map scale&lt;BR /&gt; // return view.goTo(options.target);&lt;BR /&gt; // }&lt;BR /&gt; // });&lt;BR /&gt; //&lt;BR /&gt; // view.ui.add(locate, "top-left");&lt;/P&gt;&lt;P&gt;var track = new Track({&lt;BR /&gt; view: view,&lt;BR /&gt; graphic: new Graphic({&lt;BR /&gt; symbol: {&lt;BR /&gt; type: "simple-marker",&lt;BR /&gt; size: "12px",&lt;BR /&gt; color: "green",&lt;BR /&gt; outline: {&lt;BR /&gt; color: "#efefef",&lt;BR /&gt; width: "1.5px"&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; }),&lt;BR /&gt; useHeadingEnabled: false // Don't change orientation of the map&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;view.ui.add(track, "top-left");&lt;/P&gt;&lt;P&gt;var compass = new Compass({&lt;BR /&gt; view: view&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;// adds the compass to the top left corner of the MapView&lt;BR /&gt; view.ui.add(compass, "top-left");&lt;/P&gt;&lt;P&gt;var activeGraphic;&lt;/P&gt;&lt;P&gt;function findNearestGraphic(event) {&lt;BR /&gt; return view.hitTest(event).then(function (response) {&lt;BR /&gt; var graphic;&lt;BR /&gt; // Get the Trail graphics only&lt;BR /&gt; if (response.results.length) {&lt;BR /&gt; graphic = response.results.filter(function (result) {&lt;BR /&gt; &lt;STRONG&gt;return result.graphic.layer === parksLayer;&lt;/STRONG&gt;&lt;BR /&gt; })[0].graphic;&lt;BR /&gt; }&lt;BR /&gt; // Only return new graphics are found&lt;BR /&gt; if (graphic) {&lt;BR /&gt; if (!activeGraphic || (activeGraphic.attributes.OBJECTID !== graphic.attributes.OBJECTID)) {&lt;BR /&gt; return graphic;&lt;BR /&gt; } else {&lt;BR /&gt; return null;&lt;BR /&gt; }&lt;BR /&gt; } else {&lt;BR /&gt; return null;&lt;BR /&gt; }&lt;BR /&gt; });&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;var bufferGraphic;&lt;/P&gt;&lt;P&gt;function drawBuffer(bufferGeometry) {&lt;BR /&gt; view.graphics.remove(bufferGraphic);&lt;BR /&gt; bufferGraphic = new Graphic({&lt;BR /&gt; geometry: bufferGeometry,&lt;BR /&gt; symbol: {&lt;BR /&gt; type: "simple-fill",&lt;BR /&gt; color: "rgba(0,0,0,0)",&lt;BR /&gt; outline: {&lt;BR /&gt; color: "rgba(0,0,0,.5)",&lt;BR /&gt; width: 1&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; });&lt;BR /&gt; view.graphics.add(bufferGraphic);&lt;BR /&gt; }&lt;BR /&gt; &lt;STRONG&gt;var parksLayer;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; //var parksLayer = webmap.findLayerById("958f6534812a4407925a2a18a640b841");&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; view.when(function() {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; parksLayer = webmap.allLayers.find(function(layer) {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; return layer.title === "Parks";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; });&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; console.log(parksLayer);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;view.on("pointer-move", function(event){&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; findNearestGraphic(event).then(function(graphic){&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; if (graphic) {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; activeGraphic = graphic;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; var buffer = geometryEngine.geodesicBuffer(activeGraphic.geometry, .25, "miles");&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; drawBuffer(buffer);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; }&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; });&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; });&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; });&lt;/STRONG&gt;&lt;BR /&gt;});&lt;BR /&gt; &amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/head&amp;gt;&lt;BR /&gt; &amp;lt;body&amp;gt;&lt;BR /&gt; &amp;lt;div id="legendWidget"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;Issue 1:&lt;/STRONG&gt; When you where trying to get the&amp;nbsp;&lt;STRONG style="background-color: #f6f6f6;"&gt;parksLayer = webmap.allLayers.find&lt;/STRONG&gt;, the layers are not yet loaded into the webmap and hence its null, so need to encapsulate in view.when(function(){})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Issue 2:&lt;/STRONG&gt;&amp;nbsp;The way you where returning graphic via the Array.filter() function had a small flaw. When we say after filter()[0].graphic what it means is that Array.filter() returns an array of objects and from it we need just the 1st element, ideally here we will have only one element which is equal to the parksLayer. If you put a bracket, then nothing is being returned and hence you are trying to force select an index 0 of an empty array/non-initialized array.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;graphic = response.results.filter(function (result) {&lt;BR /&gt;&amp;nbsp;return &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;result.graphic.layer === parksLayer&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;BR /&gt; })[0].graphic;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Do let me know if this works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2020 15:55:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104759#M9597</guid>
      <dc:creator>GeorgeAbraham</dc:creator>
      <dc:date>2020-06-11T15:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: get layer from webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104760#M9598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to add - you can read more on the Array.filter() at&amp;nbsp;&lt;A href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter"&gt;MDN&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2020 04:28:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104760#M9598</guid>
      <dc:creator>GeorgeAbraham</dc:creator>
      <dc:date>2020-06-12T04:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: get layer from webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104761#M9599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi George&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry it took so long to reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your code and am getting the same result...same error.&amp;nbsp; No change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that I do see the layer in the console.log....so it does seem to be retrieving it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made an adjustment to what I wrapped in the view.when function and that cleared up the errors but the buffer event didn't happen and didn't error.&amp;nbsp; &amp;nbsp;Any other thoughts?&amp;nbsp; I will keep adjusting things to see what I can figure out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also again tried the code straight from the tutorial and it works fine so the issue must lie in the difference between a featureLayer and webMap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I started over from scratch and seemed to get somewhere so I must have had something messy.&amp;nbsp; So what happens now though is I get 1 buffer returned and then get that same graphic undefined error again after.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above codepen had been updated with latest code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2020 17:38:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104761#M9599</guid>
      <dc:creator>EricGardecki1</dc:creator>
      <dc:date>2020-06-16T17:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: get layer from webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104762#M9600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're getting an error because the hitTest is just returning the Township layer when you move the mouse over it. Since filter result is empty, trying to get the first element in its array gives you the error.&amp;nbsp; Check the length of the filter result before getting its graphic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; graphic&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;// Get the Trail graphics only&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;response&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;results&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;length&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
  &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; test &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; response&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;results&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;filter&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;result&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; result&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;graphic&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layer &lt;SPAN class="operator token"&gt;===&lt;/SPAN&gt; parksLayer&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;test&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;length &lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    graphic &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; test&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;graphic&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your buffer problem is in line 195, trying to look for the OBJECTID attribute. This feature only has the FID attribute, so the line should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;!&lt;/SPAN&gt;activeGraphic &lt;SPAN class="operator token"&gt;||&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;activeGraphic&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;attributes&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;FID &lt;SPAN class="operator token"&gt;!==&lt;/SPAN&gt; graphic&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;attributes&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;FID&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:23:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104762#M9600</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-12-11T06:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: get layer from webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104763#M9601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was it!&amp;nbsp; Thanks so much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having trouble understanding what those changes accomplished though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the FID, I get that that was an issue, didn't realize it didn't have the GlobalID.&amp;nbsp; However, I don't know what the purpose of that line is.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the other part, before making that change everything was working, despite that error still occurring.&amp;nbsp; What do you mean "Township layer"?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this error probably occurs in the original tutorial version as well?&amp;nbsp; It comes from the moments when the cursor is not near a feature to obtain graphics from?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&amp;nbsp; Glad I'm getting somewhere.&amp;nbsp; Working through issues like this help me learn it better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2020 22:28:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104763#M9601</guid>
      <dc:creator>EricGardecki1</dc:creator>
      <dc:date>2020-06-16T22:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: get layer from webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104764#M9602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The hitTest returns an array of features from each of the layers of the webmap that the mouse is on. When you move the mouse from the edge of the screen, you first move over the feature in the Township layer. That's the only layer returned by the hitTest, so when you filter out only the layer that is named "Parks", the filtered array is empty. It's only when the mouse moves over a park that the hitTest will also include the "Parks" layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To see what layers are included in the hitTest, add line 5 to your code&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; graphic&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;// Get the Trail graphics only&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;response&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;results&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;length&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
  &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; test &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; response&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;results&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;filter&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;result&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;result&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;graphic&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;title&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; result&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;graphic&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layer &lt;SPAN class="operator token"&gt;===&lt;/SPAN&gt; parksLayer&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;test&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;length &lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    graphic &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; test&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;graphic&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In line 195, the if statement is asking whether activeGraphic is undefined &lt;STRONG&gt;or &lt;/STRONG&gt;is the FID of activeGraphic different than the FID of the graphic. activeGraphic is the last park feature that the mouse is on. The first time you move the mouse over a park, activeGraphic is empty. So the first part of the if statement (is activeGraphic undefined?) is true. The code continues and activeGraphic is set to the park feature on line 174 before the park buffer is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the mouse moves again, the first part of the if statement is now false (since activeGraphic is defined), but since you haven't moved to another park, the second part of the if statement is also false. When you move the mouse into a new park, the second part is now true, so the activeGraphic is changed again and the buffer is created for the new park.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A note about FID versus OBJECTID. You have to examine that attributes of your data to see which one you have to use. You can look at the feature's service URL (&lt;A class="link-titled" href="https://services9.arcgis.com/6qDS6gU30E3aEaoi/arcgis/rest/services/Parks_public_view/FeatureServer/0" title="https://services9.arcgis.com/6qDS6gU30E3aEaoi/arcgis/rest/services/Parks_public_view/FeatureServer/0" rel="nofollow noopener noreferrer" target="_blank"&gt;https://services9.arcgis.com/6qDS6gU30E3aEaoi/arcgis/rest/services/Parks_public_view/FeatureServer/0&lt;/A&gt;) or by using your browser's console.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:23:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104764#M9602</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-12-11T06:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: get layer from webmap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104765#M9603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the explanation!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2020 16:51:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-layer-from-webmap/m-p/104765#M9603</guid>
      <dc:creator>EricGardecki1</dc:creator>
      <dc:date>2020-06-17T16:51:41Z</dc:date>
    </item>
  </channel>
</rss>

