<?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: Super basic question in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/super-basic-question/m-p/1285895#M81051</link>
    <description>&lt;P&gt;My guess is that since the length is 0, it runs through it once, pushing a null value to parcel.&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2023 20:46:51 GMT</pubDate>
    <dc:creator>KevinHanley2</dc:creator>
    <dc:date>2023-05-04T20:46:51Z</dc:date>
    <item>
      <title>Super basic question</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/super-basic-question/m-p/1285421#M81031</link>
      <description>&lt;P&gt;So I am both new to Javascript and new to this ArcGIS API. I know I'm just missing some sort of basic knowledge so I figured I'd turn to the experts.&lt;/P&gt;&lt;P&gt;I have just came back from not doing any coding for about a year, so things are definitely not fresh. I'm attempting to use the GeometryEngine with the 4.26 API to buffer a radius from a given feature/set of features.&lt;/P&gt;&lt;P&gt;Currently it's saying that the geometry is null (line 9 in the code below), so it isn't seeing any of the features data inside this function. I am sure I had this working at one point. Can anyone tell me how to get the features data accessible from inside this function? (If you need more information about the rest of my code just let me know).&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;      function buffertheSelection(event) {
        if (bufferSelection.classList[2] === "button-text") {
          var parcel = [];
          var dist = [];
          dist.push(300);
          bufferSelection.classList.remove("button-text");
          bufferSelection.classList.add("active");
          for (i=0; i &amp;lt; features.length; i++){
            parcel.push(features[i].feature.geometry);
          }
          const ptBuff = geometryEngine.buffer(parcel, dist, "feet", true);
          featureTable.clearSelectionFilter();
          bufferGraphic = new Graphic ({
            geometry: ptBuff[0].extent,
            symbol: {
              type: "simple-fill",
              color: ([153, 255, 255, 0.5])
            }
          });
          bufferGraphic.layer === parcelSearchLayer;
          view.graphics.add(bufferGraphic);
          featureTable.filterGeometry = ptBuff[0].extent;
        } else {
          bufferSelection.classList.remove("active");
          bufferSelection.classList.add("button-text");
          view.graphics.remove(bufferGraphic);
        }
      }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for taking a look!&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 20:21:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/super-basic-question/m-p/1285421#M81031</guid>
      <dc:creator>KevinHanley2</dc:creator>
      <dc:date>2023-05-03T20:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Super basic question</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/super-basic-question/m-p/1285441#M81033</link>
      <description>&lt;P&gt;How is&amp;nbsp;&lt;FONT face="courier new,courier"&gt;features&lt;/FONT&gt; being created? Maybe log &lt;FONT face="courier new,courier"&gt;features&lt;/FONT&gt; to the console before you call it in your function so you can inspect its contents and ensure there's a geometry property and you're accessing it correctly.&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 20:51:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/super-basic-question/m-p/1285441#M81033</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2023-05-03T20:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Super basic question</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/super-basic-question/m-p/1285623#M81038</link>
      <description>&lt;P&gt;Line 9 should be&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;parcel.push(features[i].geometry);&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 04 May 2023 13:15:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/super-basic-question/m-p/1285623#M81038</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-05-04T13:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Super basic question</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/super-basic-question/m-p/1285884#M81048</link>
      <description>&lt;P&gt;Unfortunately this isn't the case, since features is null.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 20:31:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/super-basic-question/m-p/1285884#M81048</guid>
      <dc:creator>KevinHanley2</dc:creator>
      <dc:date>2023-05-04T20:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Super basic question</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/super-basic-question/m-p/1285887#M81049</link>
      <description>&lt;P&gt;This is the basic bit of knowledge that I can't figure out. I am clicking on my map and it is highlighting the feature and adding the feature's information to the featureTable, so I know the graphic exists somewhere. I just can't figure out what variable contains the geometry of the highlighted graphic.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 20:33:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/super-basic-question/m-p/1285887#M81049</guid>
      <dc:creator>KevinHanley2</dc:creator>
      <dc:date>2023-05-04T20:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Super basic question</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/super-basic-question/m-p/1285891#M81050</link>
      <description>&lt;P&gt;If features is null, how is it even going through the loop in lines 8-10?&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 20:39:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/super-basic-question/m-p/1285891#M81050</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-05-04T20:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Super basic question</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/super-basic-question/m-p/1285895#M81051</link>
      <description>&lt;P&gt;My guess is that since the length is 0, it runs through it once, pushing a null value to parcel.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 20:46:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/super-basic-question/m-p/1285895#M81051</guid>
      <dc:creator>KevinHanley2</dc:creator>
      <dc:date>2023-05-04T20:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Super basic question</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/super-basic-question/m-p/1286114#M81060</link>
      <description>&lt;P&gt;It won't go through the loop once, though. In JSBin, this is what happens with your loop when features is not empty&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="features1.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69949i1F171D865C8C2EF3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="features1.png" alt="features1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And this is when features is empty&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="features0.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69950iFB401B2DA340E7C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="features0.png" alt="features0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 14:14:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/super-basic-question/m-p/1286114#M81060</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-05-05T14:14:19Z</dc:date>
    </item>
  </channel>
</rss>

