<?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: Migrating ArcGIS widgets that are hierarchically next to the Map component in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/migrating-arcgis-widgets-that-are-hierarchically/m-p/1697401#M88373</link>
    <description>&lt;P&gt;Thank you for this solution!&lt;/P&gt;&lt;P&gt;I was skeptical about whether this would work with Angular components, since the &lt;STRONG&gt;id&lt;/STRONG&gt; is set in a different component than the one containing the element where the &lt;STRONG&gt;reference-element&lt;/STRONG&gt; is defined.&lt;/P&gt;&lt;P&gt;But it seems to work!&lt;/P&gt;</description>
    <pubDate>Tue, 21 Apr 2026 09:05:23 GMT</pubDate>
    <dc:creator>Insa_bel</dc:creator>
    <dc:date>2026-04-21T09:05:23Z</dc:date>
    <item>
      <title>Migrating ArcGIS widgets that are hierarchically next to the Map component</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/migrating-arcgis-widgets-that-are-hierarchically/m-p/1679213#M88079</link>
      <description>&lt;P&gt;We are currently migrating our ArcGIS widgets to the new web components, but we have encountered some ambiguities in the documentation.&lt;/P&gt;&lt;P&gt;In our Angular application, we use a large number of widgets that are positioned outside the map component — for example, widgets that are (deeply) nested within navigational tabs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, we are assigning the view directly to the nested components following the documentation.&lt;/P&gt;&lt;P&gt;An example of this approach (compass positioned within a header) can be found here: &lt;A href="https://codepen.io/insabelter/pen/RNRgBEy?editors=1111&amp;nbsp;" target="_self"&gt;https://codepen.io/insabelter/pen/RNRgBEy?editors=1111&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the same time, the documentation states that this approach should be avoided:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-01-22 091504.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/147095iE9A0CEC189A213BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2026-01-22 091504.png" alt="Screenshot 2026-01-22 091504.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Docs:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-compass/#methods&amp;nbsp;" target="_self"&gt;https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-compass/#methods&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is your recommended approach for migrating such components that are not direct children of the map-component?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2026 08:16:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/migrating-arcgis-widgets-that-are-hierarchically/m-p/1679213#M88079</guid>
      <dc:creator>Insa_bel</dc:creator>
      <dc:date>2026-01-22T08:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating ArcGIS widgets that are hierarchically next to the Map component</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/migrating-arcgis-widgets-that-are-hierarchically/m-p/1679285#M88081</link>
      <description>&lt;P&gt;Hi, you can use the &lt;FONT face="andale mono,times"&gt;reference-element&lt;/FONT&gt; attribute to associate the component with your map. Just set the reference-element to the map's ID and that will connect them! Here's an updated version of your codepen:&amp;nbsp;&lt;A href="https://codepen.io/annefitz/pen/PwzjgLw?editors=1001" target="_blank"&gt;https://codepen.io/annefitz/pen/PwzjgLw?editors=1001&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Some documentation that may be helpful:&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/programming-patterns/#associate-components-with-a-map-or-scene-component" target="_self"&gt;Programming patterns - Associate components with a Map or Scene component&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-compass/#referenceElement" target="_self"&gt;Compass component reference - referenceElement&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 22 Jan 2026 14:45:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/migrating-arcgis-widgets-that-are-hierarchically/m-p/1679285#M88081</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2026-01-22T14:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating ArcGIS widgets that are hierarchically next to the Map component</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/migrating-arcgis-widgets-that-are-hierarchically/m-p/1697401#M88373</link>
      <description>&lt;P&gt;Thank you for this solution!&lt;/P&gt;&lt;P&gt;I was skeptical about whether this would work with Angular components, since the &lt;STRONG&gt;id&lt;/STRONG&gt; is set in a different component than the one containing the element where the &lt;STRONG&gt;reference-element&lt;/STRONG&gt; is defined.&lt;/P&gt;&lt;P&gt;But it seems to work!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 09:05:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/migrating-arcgis-widgets-that-are-hierarchically/m-p/1697401#M88373</guid>
      <dc:creator>Insa_bel</dc:creator>
      <dc:date>2026-04-21T09:05:23Z</dc:date>
    </item>
  </channel>
</rss>

