<?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: Component would not be rendered in a DOM element that is added to MapView.ui in V4.33 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/component-would-not-be-rendered-in-a-dom-element/m-p/1666546#M87888</link>
    <description>&lt;P&gt;With components, you should not be adding elements to the `view.ui`. You can add them directly to the map component.&lt;/P&gt;&lt;P&gt;In 4.33, you can use the placement component to help with this.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    let arcgisMap = document.querySelector('arcgis-map');
    let infoPanel = document.createElement('DIV');
    let widget = document.createElement('arcgis-search');
    let placement = document.createElement('arcgis-placement');
    placement.position = "top-right";
    infoPanel.className = 'infoPanel border';
    infoPanel.innerHTML = 'Info Panel';
    infoPanel.style.borderWidth = '1px';
    infoPanel.style.borderColor = 'blue';
    infoPanel.style.borderStyle = 'solid';
    
    infoPanel.appendChild(widget);
    placement.appendChild(infoPanel);
    arcgisMap.appendChild(placement);&lt;/LI-CODE&gt;&lt;P&gt;&lt;A href="https://codepen.io/odoe/pen/YPqVQOp?editors=1001" target="_blank"&gt;https://codepen.io/odoe/pen/YPqVQOp?editors=1001&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In 4.34, you can set the `infoPanel.slot ="top-right"` and&amp;nbsp;&amp;nbsp;`arcgisMap.appendChild(infoPanel)`&lt;/P&gt;</description>
    <pubDate>Mon, 17 Nov 2025 23:10:33 GMT</pubDate>
    <dc:creator>ReneRubalcava</dc:creator>
    <dc:date>2025-11-17T23:10:33Z</dc:date>
    <item>
      <title>Component would not be rendered in a DOM element that is added to MapView.ui in V4.33</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/component-would-not-be-rendered-in-a-dom-element/m-p/1666404#M87883</link>
      <description>&lt;P&gt;Using JS API V4.33&lt;/P&gt;&lt;P&gt;I was attemping to add a search component into a DOM element and added to the the top right corn of the map.&lt;/P&gt;&lt;P&gt;I used the following code&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; let arcgisMap = document.querySelector('arcgis-map');
 let infoPanel = document.createElement('DIV');
 let widget = document.createElement('arcgis-search');
 
 infoPanel.className = 'infoPanel border';
 infoPanel.innerHTML = 'Info Panel';
 infoPanel.style.borderWidth = '1px';
 infoPanel.style.borderColor = 'blue';
 infoPanel.style.borderStyle = 'solid';
 infoPanel.appendChild(widget);
 arcgisMap.view.ui.add(infoPanel, 'top-right');&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the arcgis-search component would always be added to the top-left position of the map instead.&lt;/P&gt;&lt;P&gt;I tried the same code in API 4.34 and it was able to render the arcgis-search placement correctly inside the infoPanel element and added to the top-right position of the map.&lt;/P&gt;&lt;P&gt;Did I make a mistake somewhere, or is this a bug in V4.33?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2025 19:29:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/component-would-not-be-rendered-in-a-dom-element/m-p/1666404#M87883</guid>
      <dc:creator>AllenHuang</dc:creator>
      <dc:date>2025-11-17T19:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Component would not be rendered in a DOM element that is added to MapView.ui in V4.33</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/component-would-not-be-rendered-in-a-dom-element/m-p/1666546#M87888</link>
      <description>&lt;P&gt;With components, you should not be adding elements to the `view.ui`. You can add them directly to the map component.&lt;/P&gt;&lt;P&gt;In 4.33, you can use the placement component to help with this.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    let arcgisMap = document.querySelector('arcgis-map');
    let infoPanel = document.createElement('DIV');
    let widget = document.createElement('arcgis-search');
    let placement = document.createElement('arcgis-placement');
    placement.position = "top-right";
    infoPanel.className = 'infoPanel border';
    infoPanel.innerHTML = 'Info Panel';
    infoPanel.style.borderWidth = '1px';
    infoPanel.style.borderColor = 'blue';
    infoPanel.style.borderStyle = 'solid';
    
    infoPanel.appendChild(widget);
    placement.appendChild(infoPanel);
    arcgisMap.appendChild(placement);&lt;/LI-CODE&gt;&lt;P&gt;&lt;A href="https://codepen.io/odoe/pen/YPqVQOp?editors=1001" target="_blank"&gt;https://codepen.io/odoe/pen/YPqVQOp?editors=1001&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In 4.34, you can set the `infoPanel.slot ="top-right"` and&amp;nbsp;&amp;nbsp;`arcgisMap.appendChild(infoPanel)`&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2025 23:10:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/component-would-not-be-rendered-in-a-dom-element/m-p/1666546#M87888</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2025-11-17T23:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Component would not be rendered in a DOM element that is added to MapView.ui in V4.33</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/component-would-not-be-rendered-in-a-dom-element/m-p/1666707#M87892</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7384"&gt;@ReneRubalcava&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This solved my problem.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2025 14:27:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/component-would-not-be-rendered-in-a-dom-element/m-p/1666707#M87892</guid>
      <dc:creator>AllenHuang</dc:creator>
      <dc:date>2025-11-18T14:27:21Z</dc:date>
    </item>
  </channel>
</rss>

