<?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: GeoJSON layer labeling error in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geojson-layer-labeling-error/m-p/1654850#M87685</link>
    <description>&lt;P&gt;Updating the version must have fixed it. I was using&amp;nbsp;&lt;SPAN&gt;Javascript SDK (4.33.&lt;STRONG&gt;9&lt;/STRONG&gt;)&amp;nbsp;and map components (4.33.&lt;STRONG&gt;0&lt;/STRONG&gt;) originally.&amp;nbsp;Now I am using Javascript SDK (4.33.&lt;STRONG&gt;14&lt;/STRONG&gt;)&amp;nbsp;and map components (4.33.&lt;STRONG&gt;23&lt;/STRONG&gt;) and the labels are working. I had to restart for the changes to kick in.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Oct 2025 15:29:48 GMT</pubDate>
    <dc:creator>RebeccaBayham</dc:creator>
    <dc:date>2025-10-02T15:29:48Z</dc:date>
    <item>
      <title>GeoJSON layer labeling error</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geojson-layer-labeling-error/m-p/1654630#M87677</link>
      <description>&lt;P&gt;I am using the Javascript SDK (4.33.14)&amp;nbsp;and map components (4.33.23) in a React (19.1.0) and Vite (7.0.0) application. I am displaying a point GeoJSON Layer with ~1000 features with no issues. However, when I set labelingInfo, it errors out with the error "Uncaught RangeError: Invalid array length" 235 times. I have double checked the syntax I'm using. I have tried adding the simplest of labels, using different attributes for the label, and installing newer versions of the Javascript SDK and map components (to no avail).&amp;nbsp;&lt;/P&gt;&lt;P&gt;To test labels out in general, I tried adding a label to a separate polygon Feature Layer, but that causes the infinite error "Uncaught TypeError: Cannot destructure property 'vertexStart' of 'e14[s11]' as it is undefined." I'm not sure if that is related or not. I have attached pictures of the console messages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the relevant parts of the code I'm using:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; const viewRef = useRef();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; const aLayer = useRef();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; const blob = new Blob([JSON.stringify(geojsonData)], {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; type: "application/json",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; });&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; const url = URL.createObjectURL(blob);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; const labelClass = {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; symbol: {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; type: "text",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; color: "black",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; font: {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; family: "Noto Sans",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; size: 14,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; labelExpressionInfo: {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; expression: "$feature.c",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; };&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; aLayer.current = new GeoJSONLayer({&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; title: "Locations",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; url: url,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; popupEnabled: true,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; popupTemplate: popupTemplate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; renderer: uniqueRenderer,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; labelingInfo: [labelClass],&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; });&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; viewRef.current.map.add(aLayer.current);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any help!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 20:16:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geojson-layer-labeling-error/m-p/1654630#M87677</guid>
      <dc:creator>RebeccaBayham</dc:creator>
      <dc:date>2025-10-01T20:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: GeoJSON layer labeling error</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geojson-layer-labeling-error/m-p/1654634#M87678</link>
      <description>&lt;P&gt;I should add: this code is called after the view is ready. Also, none of the GeoJSON attributes are missing or null.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 20:23:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geojson-layer-labeling-error/m-p/1654634#M87678</guid>
      <dc:creator>RebeccaBayham</dc:creator>
      <dc:date>2025-10-01T20:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: GeoJSON layer labeling error</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geojson-layer-labeling-error/m-p/1654850#M87685</link>
      <description>&lt;P&gt;Updating the version must have fixed it. I was using&amp;nbsp;&lt;SPAN&gt;Javascript SDK (4.33.&lt;STRONG&gt;9&lt;/STRONG&gt;)&amp;nbsp;and map components (4.33.&lt;STRONG&gt;0&lt;/STRONG&gt;) originally.&amp;nbsp;Now I am using Javascript SDK (4.33.&lt;STRONG&gt;14&lt;/STRONG&gt;)&amp;nbsp;and map components (4.33.&lt;STRONG&gt;23&lt;/STRONG&gt;) and the labels are working. I had to restart for the changes to kick in.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2025 15:29:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geojson-layer-labeling-error/m-p/1654850#M87685</guid>
      <dc:creator>RebeccaBayham</dc:creator>
      <dc:date>2025-10-02T15:29:48Z</dc:date>
    </item>
  </channel>
</rss>

