<?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: Trying to set basemap to wms with components in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-set-basemap-to-wms-with-components/m-p/1574157#M86356</link>
    <description>&lt;P&gt;Hi Marc - could you share a codepen or snippet that reproduces the issue you are running into?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example that uses map components with the WMSLayer as the basemap. Hope this helps!&amp;nbsp;&lt;A href="https://codepen.io/annefitz/pen/yyBvZQv" target="_blank"&gt;https://codepen.io/annefitz/pen/yyBvZQv&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jan 2025 20:54:40 GMT</pubDate>
    <dc:creator>AnneFitz</dc:creator>
    <dc:date>2025-01-09T20:54:40Z</dc:date>
    <item>
      <title>Trying to set basemap to wms with components</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-set-basemap-to-wms-with-components/m-p/1573515#M86349</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to migrate an application to arcgis components and have some trouble with setting a basemap from a WMS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the html I create &amp;lt;arcgis-map&amp;gt; component and then wanted to create a BaseMap from a WMSLayer object and set the arcgis-map's basemap property to said BaseMap object. Now I get the following error:&amp;nbsp;[esri.core.accessorSupport.ensureTypes] Accessor#set Assigning an instance of 'esri.Basemap' which is not a subclass of 'esri.Basemap'&lt;/P&gt;&lt;P&gt;Note that I am loading the API (4.31) from a local folder and the componets library through a link ("&lt;A href="https://js.arcgis.com/map-components/4.31/arcgis-map-components.esm.js&amp;quot;" target="_blank" rel="noopener"&gt;https://js.arcgis.com/map-components/4.31/arcgis-map-components.esm.js"&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I got a similar problem when trying to add a layer to the map through the addLayer function of the map component. I always get this error:&amp;nbsp;esri.WebMap] #add() The item being added is not a Layer or a Promise that resolves to a Layer.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But i guess that's another story.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 14:36:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-set-basemap-to-wms-with-components/m-p/1573515#M86349</guid>
      <dc:creator>diffmarc</dc:creator>
      <dc:date>2025-01-08T14:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to set basemap to wms with components</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-set-basemap-to-wms-with-components/m-p/1574157#M86356</link>
      <description>&lt;P&gt;Hi Marc - could you share a codepen or snippet that reproduces the issue you are running into?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example that uses map components with the WMSLayer as the basemap. Hope this helps!&amp;nbsp;&lt;A href="https://codepen.io/annefitz/pen/yyBvZQv" target="_blank"&gt;https://codepen.io/annefitz/pen/yyBvZQv&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 20:54:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-set-basemap-to-wms-with-components/m-p/1574157#M86356</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2025-01-09T20:54:40Z</dc:date>
    </item>
  </channel>
</rss>

