I have been modifying the basemaps widget to include several wms layers - the obvious issue with this is that a WMS Layer cannot technical be a basemap (esri/basemap).
My intentions are too use both wms layers and arcgis tiled layers as basemaps. I have accomplished this before in a separate application by simply adding it to the map as a layer and reordering the selected 'basemap' layer to 0.
my issues with implementing this into cmv have been mostly removing the starting basemap (this.config.mapOptions.basemap) after selecting a new one. I am able to successfully switch between WMS layers but it seems the cmv has trouble removing the startup basemap.
The only code i modified outside of the config/basemaps.js and gis/dijit/Basemaps.js files is the controller at line 208 - https://github.com/cmv/cmv-app/blob/master/viewer/js/viewer/Controller.js#L208
Added
this.map.addLayer(this.config.mapOptions.basemap)I have more code to share if necessary. I appreciate any help or suggestions!
أكثر...
My intentions are too use both wms layers and arcgis tiled layers as basemaps. I have accomplished this before in a separate application by simply adding it to the map as a layer and reordering the selected 'basemap' layer to 0.
my issues with implementing this into cmv have been mostly removing the starting basemap (this.config.mapOptions.basemap) after selecting a new one. I am able to successfully switch between WMS layers but it seems the cmv has trouble removing the startup basemap.
The only code i modified outside of the config/basemaps.js and gis/dijit/Basemaps.js files is the controller at line 208 - https://github.com/cmv/cmv-app/blob/master/viewer/js/viewer/Controller.js#L208
Added
this.map.addLayer(this.config.mapOptions.basemap)I have more code to share if necessary. I appreciate any help or suggestions!
أكثر...