<?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 Add WSM as basemap in 3.x in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-wsm-as-basemap-in-3-x/m-p/1019931#M71493</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I want to add WMS layer as basemap layer. I am using the below code to add the same.&lt;/P&gt;&lt;P&gt;greylayer = "&lt;A href="https://gis.ices.dk/gis/services/World_Topo_Map/MapServer/WMSServer?request=GetCapabilities&amp;amp;service=WMS" target="_blank" rel="noopener"&gt;https://gis.ices.dk/gis/services/World_Topo_Map/MapServer/WMSServer?request=GetCapabilities&amp;amp;service=WMS&lt;/A&gt;";&lt;BR /&gt;var ltGreyLayer = new BasemapLayer({ url: greylayer });&lt;BR /&gt;&lt;BR /&gt;var ltGreyBasemap = new Basemap({&lt;BR /&gt;layers: [ltGreyLayer],&lt;BR /&gt;id: 'ltGrey',&lt;BR /&gt;title: 'Light Grey',&lt;BR /&gt;thumbnailUrl: 'https://xx/arcgis/rest/services/Metropolis_basemap/MapServer/info/thumbnail'&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;config.basemaps.push(ltGreyBasemap);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On doing so I am getting the below error while loading the map.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ADITYAKUMAR1_0-1611644766189.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/4534iDE6F7744145C430A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ADITYAKUMAR1_0-1611644766189.png" alt="ADITYAKUMAR1_0-1611644766189.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea how to fix it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jan 2021 07:08:15 GMT</pubDate>
    <dc:creator>ADITYAKUMAR1</dc:creator>
    <dc:date>2021-01-26T07:08:15Z</dc:date>
    <item>
      <title>Add WSM as basemap in 3.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-wsm-as-basemap-in-3-x/m-p/1019931#M71493</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I want to add WMS layer as basemap layer. I am using the below code to add the same.&lt;/P&gt;&lt;P&gt;greylayer = "&lt;A href="https://gis.ices.dk/gis/services/World_Topo_Map/MapServer/WMSServer?request=GetCapabilities&amp;amp;service=WMS" target="_blank" rel="noopener"&gt;https://gis.ices.dk/gis/services/World_Topo_Map/MapServer/WMSServer?request=GetCapabilities&amp;amp;service=WMS&lt;/A&gt;";&lt;BR /&gt;var ltGreyLayer = new BasemapLayer({ url: greylayer });&lt;BR /&gt;&lt;BR /&gt;var ltGreyBasemap = new Basemap({&lt;BR /&gt;layers: [ltGreyLayer],&lt;BR /&gt;id: 'ltGrey',&lt;BR /&gt;title: 'Light Grey',&lt;BR /&gt;thumbnailUrl: 'https://xx/arcgis/rest/services/Metropolis_basemap/MapServer/info/thumbnail'&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;config.basemaps.push(ltGreyBasemap);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On doing so I am getting the below error while loading the map.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ADITYAKUMAR1_0-1611644766189.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/4534iDE6F7744145C430A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ADITYAKUMAR1_0-1611644766189.png" alt="ADITYAKUMAR1_0-1611644766189.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea how to fix it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 07:08:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-wsm-as-basemap-in-3-x/m-p/1019931#M71493</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2021-01-26T07:08:15Z</dc:date>
    </item>
  </channel>
</rss>

