<?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 Potential Code Issue - Seeking Verification in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/potential-code-issue-seeking-verification/m-p/1682644#M88121</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I've spotted a potential code issue that appears to be a writing error, but I don't have test cases to verify what problems it might cause. Maybe I'm overthinking it, and I'd appreciate your confirmation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;version:&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/642472"&gt;@ArcGIS&lt;/a&gt;/core&amp;nbsp;4.34.8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;file location：@arcgis\core\chunks\Envelope.js&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;LI-CODE lang="javascript"&gt;class F {
  static getInstance() {
    return F.s_thisInstance
  }
  constructor() {
    this.m_map = new Map,
      this.m_vd2D = new L(1),
      this.m_map.set(1, this.m_vd2D),
      this.m_vd3D = new L(3),
      this.m_map.set(3, this.m_vd2D) // **This line**
  }
  GetVD2D() {
    return this.m_vd2D
  }
  GetVD3D() {
    return this.m_vd3D
  }
  FindOrAdd(t) {
    if (1 === t) return this.GetVD2D();
    if (3 === t) return this.GetVD3D();
    const e = this.m_map.get(t);
    if (e) return e;
    const s = new L(t);
    return this.m_map.set(t, s), s
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;On line 11:&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;LI-CODE lang="javascript"&gt;this.m_map.set(3, this.m_vd2D)&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;. Based on the code from the previous two lines, I think the index 3 on line 11 should point to&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;this.m_vd3D &lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;instead.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Feb 2026 07:32:05 GMT</pubDate>
    <dc:creator>Yamakaze</dc:creator>
    <dc:date>2026-02-06T07:32:05Z</dc:date>
    <item>
      <title>Potential Code Issue - Seeking Verification</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/potential-code-issue-seeking-verification/m-p/1682644#M88121</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I've spotted a potential code issue that appears to be a writing error, but I don't have test cases to verify what problems it might cause. Maybe I'm overthinking it, and I'd appreciate your confirmation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;version:&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/642472"&gt;@ArcGIS&lt;/a&gt;/core&amp;nbsp;4.34.8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;file location：@arcgis\core\chunks\Envelope.js&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;LI-CODE lang="javascript"&gt;class F {
  static getInstance() {
    return F.s_thisInstance
  }
  constructor() {
    this.m_map = new Map,
      this.m_vd2D = new L(1),
      this.m_map.set(1, this.m_vd2D),
      this.m_vd3D = new L(3),
      this.m_map.set(3, this.m_vd2D) // **This line**
  }
  GetVD2D() {
    return this.m_vd2D
  }
  GetVD3D() {
    return this.m_vd3D
  }
  FindOrAdd(t) {
    if (1 === t) return this.GetVD2D();
    if (3 === t) return this.GetVD3D();
    const e = this.m_map.get(t);
    if (e) return e;
    const s = new L(t);
    return this.m_map.set(t, s), s
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;On line 11:&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;LI-CODE lang="javascript"&gt;this.m_map.set(3, this.m_vd2D)&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;. Based on the code from the previous two lines, I think the index 3 on line 11 should point to&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;this.m_vd3D &lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;instead.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2026 07:32:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/potential-code-issue-seeking-verification/m-p/1682644#M88121</guid>
      <dc:creator>Yamakaze</dc:creator>
      <dc:date>2026-02-06T07:32:05Z</dc:date>
    </item>
  </channel>
</rss>

