<?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 Total length of polyline feature Layer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-total-length-of-polyline-feature-layer/m-p/1613743#M87136</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;i want to get total length of my feature layer, i use API version 4. 27.&lt;/P&gt;&lt;P&gt;I tried this code:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;   view.when(function() {
          var length = geometryEngine.geodesicLength(wyalmomaragebareabilitaciebi2025, "meters");
          console.log("Polyline length (meteres): ", length);
        });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it did not work, i get &lt;STRONG&gt;ERROR&lt;/STRONG&gt;:&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Uncaught (in promise) TypeError: Cannot read properties of null (reading 'B')&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I can do it using query, but it slows load time, help please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Mon, 12 May 2025 17:57:29 GMT</pubDate>
    <dc:creator>Vakhtang_Zubiashvili</dc:creator>
    <dc:date>2025-05-12T17:57:29Z</dc:date>
    <item>
      <title>Get Total length of polyline feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-total-length-of-polyline-feature-layer/m-p/1613743#M87136</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;i want to get total length of my feature layer, i use API version 4. 27.&lt;/P&gt;&lt;P&gt;I tried this code:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;   view.when(function() {
          var length = geometryEngine.geodesicLength(wyalmomaragebareabilitaciebi2025, "meters");
          console.log("Polyline length (meteres): ", length);
        });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it did not work, i get &lt;STRONG&gt;ERROR&lt;/STRONG&gt;:&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Uncaught (in promise) TypeError: Cannot read properties of null (reading 'B')&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I can do it using query, but it slows load time, help please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 17:57:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-total-length-of-polyline-feature-layer/m-p/1613743#M87136</guid>
      <dc:creator>Vakhtang_Zubiashvili</dc:creator>
      <dc:date>2025-05-12T17:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get Total length of polyline feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-total-length-of-polyline-feature-layer/m-p/1613971#M87142</link>
      <description>&lt;P&gt;Input for&amp;nbsp;geodesicLength() is a geometry, not a feature layer:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#geodesicLength" target="_blank"&gt;geometryEngine | API Reference | ArcGIS Maps SDK for JavaScript 4.32 | Esri Developer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You should query a feature from your layer, get feature.geometry and pass it to geodesicLength()&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 11:24:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-total-length-of-polyline-feature-layer/m-p/1613971#M87142</guid>
      <dc:creator>Edvinas_S</dc:creator>
      <dc:date>2025-05-13T11:24:09Z</dc:date>
    </item>
  </channel>
</rss>

