<?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: Using Web Components via 4.33 using Javascript and NOT static HTML in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-web-components-via-4-33-using-javascript-and/m-p/1652087#M87634</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/507049"&gt;@Sage_Wall&lt;/a&gt;&amp;nbsp;It would be great to see some official examples/blog posts on this technique. I think I will need it a lot when I start re-building my Experience Builder Widgets with Components.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Sep 2025 13:06:37 GMT</pubDate>
    <dc:creator>JeffreyThompson2</dc:creator>
    <dc:date>2025-09-22T13:06:37Z</dc:date>
    <item>
      <title>Using Web Components via 4.33 using Javascript and NOT static HTML</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-web-components-via-4-33-using-javascript-and/m-p/1651767#M87632</link>
      <description>&lt;P&gt;Hello, I have a question about using the new 4.33 framework.&amp;nbsp; Currently I'm using widgets that are deprecated such as ScaleBar and BasemapGallery.&amp;nbsp; I have no problem putting these on my map when I dynamically render it in JS, however when I place the web components statically in the html they get lost when I render the map div with changes.&amp;nbsp; I have looked everywhere but can only find static samples which are useless when compared to widgets generated on the fly.&amp;nbsp; Can anyone instruct me on how to dynamically generate web components via JavaScript?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2025 14:10:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-web-components-via-4-33-using-javascript-and/m-p/1651767#M87632</guid>
      <dc:creator>dtstopper</dc:creator>
      <dc:date>2025-09-19T14:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using Web Components via 4.33 using Javascript and NOT static HTML</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-web-components-via-4-33-using-javascript-and/m-p/1651772#M87633</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/700759"&gt;@dtstopper&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You can use `document.createElement("arcgis-map")` in your javascript code.&amp;nbsp; I've got a github repo I use for testing stuff where I create everything programmatically and not in the HTML markup.&amp;nbsp; Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/sagewall/vite-map-components/blob/main/src/main.ts" target="_blank"&gt;https://github.com/sagewall/vite-map-components/blob/main/src/main.ts&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2025 14:24:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-web-components-via-4-33-using-javascript-and/m-p/1651772#M87633</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2025-09-19T14:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using Web Components via 4.33 using Javascript and NOT static HTML</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-web-components-via-4-33-using-javascript-and/m-p/1652087#M87634</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/507049"&gt;@Sage_Wall&lt;/a&gt;&amp;nbsp;It would be great to see some official examples/blog posts on this technique. I think I will need it a lot when I start re-building my Experience Builder Widgets with Components.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2025 13:06:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-web-components-via-4-33-using-javascript-and/m-p/1652087#M87634</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2025-09-22T13:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using Web Components via 4.33 using Javascript and NOT static HTML</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-web-components-via-4-33-using-javascript-and/m-p/1652433#M87637</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/507049"&gt;@Sage_Wall&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I see your example appends the newly created elements to a calcite-block object, but what if we wanted to append the object, such as the scale and basemap gallery below, to the UI view like we were able to before the deprecation?&lt;/P&gt;&lt;P&gt;I have 2 examples of element creations below, please advise.&lt;/P&gt;&lt;P&gt;var scaleBar1 = document.createElement('arcgis-scale-bar');&lt;BR /&gt;scaleBar1.setAttribute("position", "bottom-right");&lt;BR /&gt;scaleBar1.setAttribute("bar-style", "line");&lt;BR /&gt;scaleBar1.setAttribute("unit", "metric");&lt;/P&gt;&lt;P&gt;var basemapGallery1 = document.createElement('arcgis-scale-bar');&lt;BR /&gt;basemapGallery1.setAttribute("position", "bottom-right");&lt;/P&gt;&lt;P&gt;view.ui.add(scaleBar1, "bottom-right");&lt;BR /&gt;view.ui.add(basemapGallery1, "bottom-right");&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 14:10:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-web-components-via-4-33-using-javascript-and/m-p/1652433#M87637</guid>
      <dc:creator>dtstopper</dc:creator>
      <dc:date>2025-09-23T14:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using Web Components via 4.33 using Javascript and NOT static HTML</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-web-components-via-4-33-using-javascript-and/m-p/1652463#M87639</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/700759"&gt;@dtstopper&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;It looks like you're mixing the legacy API view UI with the new Web Components API. With the map components, you don’t need to add them to the view UI—just append them directly to the DOM where you want them to appear.&lt;/P&gt;&lt;P&gt;If you place components like the scalebar inside a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;lt;arcgis-map&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;lt;arcgis-scene&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;component, they’ll automatically wire up without any additional configuration. However, if you append them outside of those components, you’ll need to use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;referenceElement&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;property to link them properly.&lt;/P&gt;&lt;P&gt;Since map components behave like standard HTML elements, you can use familiar DOM methods such as&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;querySelector(),&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;createElement(), and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;appendChild(). MDN has a great overview here:&lt;BR /&gt;&lt;A href="https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Scripting/DOM_scripting#doing_some_basic_dom_manipulation" target="_blank" rel="noopener"&gt;https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Scripting/DOM_scripting#doing_some_basic_dom_manipulation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here’s a CodePen example that adds a scalebar and basemap gallery to a map:&lt;BR /&gt;&lt;A href="https://codepen.io/sagewall/pen/VYeLxxe" target="_blank" rel="noopener"&gt;https://codepen.io/sagewall/pen/VYeLxxe&lt;/A&gt;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Let me know if you run into any issues or have questions!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 14:51:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-web-components-via-4-33-using-javascript-and/m-p/1652463#M87639</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2025-09-23T14:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using Web Components via 4.33 using Javascript and NOT static HTML</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-web-components-via-4-33-using-javascript-and/m-p/1652644#M87642</link>
      <description>&lt;P&gt;I have to be doing something wrong because I can't get these tools to show up in the map I'm rendering with layers and other widgets.&amp;nbsp; If I just do a basic map render and follow your example it works.&amp;nbsp; But the second I try to do the same thing to my map it won't render the same and it appears to put the controls outside the view when I write them to the DOM.&lt;/P&gt;&lt;P&gt;I'm just trying to do the following:&lt;/P&gt;&lt;P&gt;var basemapToUse = "7ba5fedbafb747ec9d50e61b55ca0844";&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;// Define the web map reference&lt;BR /&gt;let map = new WebMap({&lt;BR /&gt;portalItem: {&lt;BR /&gt;id: basemapToUse&lt;BR /&gt;}});&lt;/P&gt;&lt;P&gt;const view = new MapView({&lt;BR /&gt;map: map,&lt;BR /&gt;container: viewDivObject,&lt;BR /&gt;popup: {&lt;BR /&gt;dockEnabled: true,&lt;BR /&gt;dockOptions: {&lt;BR /&gt;buttonEnabled: false,&lt;BR /&gt;breakpoint: false,&lt;BR /&gt;position: 'bottom-right'&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;view.when(function () {&lt;BR /&gt;&amp;nbsp;const viewElement = document.getElementById("viewDiv");&lt;BR /&gt;const viewElementTest = document.getElementById("testDiv");&lt;BR /&gt;const scaleBar = document.createElement("arcgis-scale-bar");&lt;BR /&gt;scaleBar.position = "bottom-right";&lt;BR /&gt;scaleBar.barStyle = "line";&lt;BR /&gt;scaleBar.unit = "dual";&lt;BR /&gt;const basemapGallery = document.createElement("arcgis-basemap-gallery");&lt;BR /&gt;basemapGallery.position = "bottom-right";&lt;BR /&gt;viewElement.appendChild(scaleBar);&lt;BR /&gt;viewElement.appendChild(basemapGallery);&lt;BR /&gt;viewElementTest.appendChild(basemapGallery);&lt;BR /&gt;viewElementTest.appendChild(scaleBar);&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;I'm using code to render maps and layers by what we used to do via version 4.20, but now it appears I can't do what you're saying which is combing the way we used to do via v4.2 and now with v4.33 since it uses components.&amp;nbsp; Is this true?&amp;nbsp; Do I have to rewrite the way I render maps, views, layers, widgets, etc?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 22:01:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-web-components-via-4-33-using-javascript-and/m-p/1652644#M87642</guid>
      <dc:creator>dtstopper</dc:creator>
      <dc:date>2025-09-23T22:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using Web Components via 4.33 using Javascript and NOT static HTML</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-web-components-via-4-33-using-javascript-and/m-p/1652647#M87643</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/700759"&gt;@dtstopper&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;It can be confusing and I apologize because our documentation is a mix of two different ways of doing things at the moment, but your mixing up the legacy MapView API with the new components API.&amp;nbsp; Instead of creating a new MapView instance with ` new MapView()` you will need to create a new Map object and then assign the map to the component.&amp;nbsp; You could use document.createElement("arcgis-map") in place of new MapView() but it's honestly probably easier to just add it to the HTML.&lt;/P&gt;&lt;P&gt;I've modified the codepen to demo what your trying to do by creating the web map and then instead of assigning it to a MapView assigning it to the Map component.&lt;/P&gt;&lt;P&gt;Hope this helps&amp;nbsp;&lt;A href="https://codepen.io/sagewall/pen/vELOPxQ?editors=1000" target="_blank"&gt;https://codepen.io/sagewall/pen/vELOPxQ?editors=1000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 22:24:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-web-components-via-4-33-using-javascript-and/m-p/1652647#M87643</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2025-09-23T22:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using Web Components via 4.33 using Javascript and NOT static HTML</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-web-components-via-4-33-using-javascript-and/m-p/1652649#M87644</link>
      <description>&lt;P&gt;Another good resource too is the programming patterns web page.&amp;nbsp; It shows the new component programming patterns, including how to add layers and configure the map and layers.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/programming-patterns/#using-map" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/programming-patterns/#using-map&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 22:32:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-web-components-via-4-33-using-javascript-and/m-p/1652649#M87644</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2025-09-23T22:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using Web Components via 4.33 using Javascript and NOT static HTML</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-web-components-via-4-33-using-javascript-and/m-p/1652818#M87645</link>
      <description>&lt;P&gt;Thank you for the references, I have another question.&amp;nbsp; Are MapView objects the same for 4.33?&amp;nbsp; I use this to attach all my objects in the view.map.load() function but I can't seem to make it work with 4.33 and the new web components.&amp;nbsp; I used to be able to attach the scale bar via view.ui.add() and basemap gallery to widgets&amp;nbsp; on the view.ui and I notice that can't be done anymore either.&amp;nbsp; I'm currently looking at the documentation for this but can't perform a working example.&amp;nbsp; Let me know if you guys have anything I can look at and adapt to my solution.&lt;/P&gt;&lt;P&gt;Do you guys have an article, documentation or solution that provides examples on how 4.33 works with all the previous ways we used to do things in version 4.23?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 15:34:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-web-components-via-4-33-using-javascript-and/m-p/1652818#M87645</guid>
      <dc:creator>dtstopper</dc:creator>
      <dc:date>2025-09-24T15:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using Web Components via 4.33 using Javascript and NOT static HTML</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-web-components-via-4-33-using-javascript-and/m-p/1652830#M87646</link>
      <description>&lt;P&gt;Can you please provide a codepen or other sample code? I'm having a little trouble following your workflow.&lt;/P&gt;&lt;P&gt;MapView itself is largely unchanged.&amp;nbsp; However, web components and the MapView class do not mix at the moment.&amp;nbsp; In the next version we have some plans to ease the transition by adding a view property to the components, but it's currently not supported to add components to a MapView.&amp;nbsp; And even if it's possible in the next release, it's not encouraged or recommended.&amp;nbsp; It's only intended to be help as a temporary solution for really large applications to be able to migrate easier.&lt;/P&gt;&lt;P&gt;When you update your app you will no longer create a `new MapView()` and add widgets to it's UI.&amp;nbsp; You also won't use the view.when() method.&amp;nbsp; instead create a new &lt;A href="https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-map/" target="_self"&gt;`arcgis-map`&lt;/A&gt; component and then access the &lt;A href="https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-map/#view" target="_self"&gt;view property&lt;/A&gt; on the component. If you need to access MapView (through the components view property) properties, methods or events you'll need to use the components `viewOnReady` method instead of the MapView's `when()`.&amp;nbsp; You can also access the &lt;A href="https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-map/#map" target="_self"&gt;map property&lt;/A&gt; on the component to do things like add layers. You can add other components like the scale bar in a defined position in the arcgis-map component.&lt;/P&gt;&lt;P&gt;It might be helpful to take a closer look at the getting started and programming patterns, then work through some. of the tutorials and samples to get a feel for the new components API.&amp;nbsp; The way you create the UI out of the components is a lot different than the previous API, but once you get to the View, Map and Layers classes the API is largely the same.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 15:44:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-web-components-via-4-33-using-javascript-and/m-p/1652830#M87646</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2025-09-24T15:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using Web Components via 4.33 using Javascript and NOT static HTML</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-web-components-via-4-33-using-javascript-and/m-p/1652922#M87652</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/507049"&gt;@Sage_Wall&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;As I suspected the reason the map wasn't rendering is because I was clearing out the innerHtml of the Div I was working with because it's what I had to do before to get the map to render correctly.&amp;nbsp; After I removed that line it's working now but I have a question about layers now.&amp;nbsp; You can see that I was able to add a feature layer to my map and it renders, however it doesn't show up in the layer list I setup.&lt;/P&gt;&lt;P&gt;I was able to use your code from the sandbox below, but for some reason the layers don't show up in my control panel down below.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/sagewall/vite-map-components/blob/main/src/main.ts#L63" target="_blank"&gt;https://github.com/sagewall/vite-map-components/blob/main/src/main.ts#L63&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dtstopper_0-1758739975734.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/140893i3278FBE2CBE3525C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dtstopper_0-1758739975734.png" alt="dtstopper_0-1758739975734.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there an order or way in which I have to add the layers to get them to show in the arcgis-layer-list?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 18:54:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-web-components-via-4-33-using-javascript-and/m-p/1652922#M87652</guid>
      <dc:creator>dtstopper</dc:creator>
      <dc:date>2025-09-24T18:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using Web Components via 4.33 using Javascript and NOT static HTML</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-web-components-via-4-33-using-javascript-and/m-p/1652927#M87653</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/507049"&gt;@Sage_Wall&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;As I suspected my map wasn't rendering because of my code clearing out the innerHtml of the div I was working with before each render.&amp;nbsp; I was able to create the panel below, add feature layers and the legend and basemap layer list seem to work&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dtstopper_0-1758740362163.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/140895i6CE16C32C58E5436/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dtstopper_0-1758740362163.png" alt="dtstopper_0-1758740362163.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The sandbox you provided was most helpful in creating this&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/sagewall/vite-map-components/blob/main/src/main.ts#L63" target="_blank"&gt;https://github.com/sagewall/vite-map-components/blob/main/src/main.ts#L63&lt;/A&gt;&lt;/P&gt;&lt;P&gt;My next issue is that when I added the feature layers to the map they aren't showing up in the&amp;nbsp;arcgis-layer-list object I created.&amp;nbsp; What do I have to do to show the layers in the&amp;nbsp;arcgis-layer-list after I add them to the map?&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Sep 2025 19:02:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-web-components-via-4-33-using-javascript-and/m-p/1652927#M87653</guid>
      <dc:creator>dtstopper</dc:creator>
      <dc:date>2025-09-24T19:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using Web Components via 4.33 using Javascript and NOT static HTML</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-web-components-via-4-33-using-javascript-and/m-p/1652975#M87654</link>
      <description>&lt;P&gt;Glad to help,&lt;/P&gt;&lt;P&gt;My best guess is you don't have the referenceElement property set.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/sagewall/vite-map-components/blob/3a4820b8b34a85d200e549481553f6ea89bb5a21/src/main.ts#L87C1-L88C1" target="_blank"&gt;https://github.com/sagewall/vite-map-components/blob/3a4820b8b34a85d200e549481553f6ea89bb5a21/src/main.ts#L87C1-L88C1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The layer list is designed to show the current state of the layers in the map, but if the legend isn't a direct child of the map in the DOM you need to wire the two up to work together.&amp;nbsp; We do that with the referenceElement property.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-layer-list/#referenceElement" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-layer-list/#referenceElement&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/programming-patterns/#associate-components-with-a-map-or-scene-component" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/programming-patterns/#associate-components-with-a-map-or-scene-component&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But from the screenshot above it doesn't look like the layer list is even visible only the calcite action is highlighted.&amp;nbsp; The block or other element that contains it may be hidden or have no height and width.&amp;nbsp; If there are no layers in a map the layer list is designed to show this message&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sage_Wall_0-1758746001162.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/140910iC8F3E04D57771426/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sage_Wall_0-1758746001162.png" alt="Sage_Wall_0-1758746001162.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 20:34:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-web-components-via-4-33-using-javascript-and/m-p/1652975#M87654</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2025-09-24T20:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using Web Components via 4.33 using Javascript and NOT static HTML</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-web-components-via-4-33-using-javascript-and/m-p/1653014#M87655</link>
      <description>&lt;P&gt;I forgot to attach the layerlist action, but I did have the correct reference.&amp;nbsp; Once I attached it everything showed up correctly.&amp;nbsp; I now have a fully working panel replacement instead of the old widgets, even&amp;nbsp; added customized a button and handler.&amp;nbsp; Thanks again for all your help, now I can move on to redoing my code that does a custom layer addition with points.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 23:07:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-web-components-via-4-33-using-javascript-and/m-p/1653014#M87655</guid>
      <dc:creator>dtstopper</dc:creator>
      <dc:date>2025-09-24T23:07:36Z</dc:date>
    </item>
  </channel>
</rss>

