Hi,
I want to add WMS layer as basemap layer. I am using the below code to add the same.
greylayer = "https://gis.ices.dk/gis/services/World_Topo_Map/MapServer/WMSServer?request=GetCapabilities&service=WMS";var ltGreyLayer = new BasemapLayer({ url: greylayer });var ltGreyBasemap = new Basemap({layers: [ltGreyLayer],id: 'ltGrey',title: 'Light Grey',thumbnailUrl: 'https://xyz/arcgis/rest/services/Metropolis_basemap/MapServer/info/thumbnail'});
config.basemaps.push(ltGreyBasemap);
On doing so I am getting the below error while loading the map.
Any idea how to fix it?
Thanks
Aditya
Ingelogde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Maak gratis een account aan.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.