Basemap issue
Opened this issue · 0 comments
How often can you reproduce it?
- Always
- Sometimes
- Rarely
- Unable
- I didn’t try
Issue with basemaps drawing, initial basemap draws, screen redraws without basemap. Can open Basemaps drop down and basemap is check, click on basemap and it draws. Error message is from developer tools in MS Internet Explorer 11. Using CMV 2.0.0 beta 2, CMV WAB 2.4 and 3.21 API.
TypeError: Unable to get property 'destroyLayerInfo' of undefined or null reference TypeError: Unable to get property 'destroyLayerInfo' of undefined or null reference
at _onLayersChange (http://jfsl-as-004v/Web/cmv/wab/2.4/jimu.js/LayerInfos/LayerInfos.js:840:11)
at Anonymous function (http://jfsl-as-004v/Web/arcgis_js_api/library/3.21/3.21/init.js:62:456)
at Anonymous function (http://jfsl-as-004v/Web/arcgis_js_api/library/3.21/3.21/init.js:650:194)
at c (http://jfsl-as-004v/Web/arcgis_js_api/library/3.21/3.21/init.js:119:178)
at removeLayer (http://jfsl-as-004v/Web/arcgis_js_api/library/3.21/3.21/init.js:597:104)
at Anonymous function (http://jfsl-as-004v/Web/arcgis_js_api/library/3.21/3.21/esri/dijit/BasemapGallery.js:199:152)
at n.forEach (http://jfsl-as-004v/Web/arcgis_js_api/library/3.21/3.21/init.js:70:422)
at _removeBasemapLayers (http://jfsl-as-004v/Web/arcgis_js_api/library/3.21/3.21/esri/dijit/BasemapGallery.js:199:128)
at updateBasemap (http://jfsl-as-004v/Web/cmv/widge
{
[functions]: ,
proto: { },
description: "Unable to get property 'destroyLayerInfo' of undefined or null reference",
message: "Unable to get property 'destroyLayerInfo' of undefined or null reference",
name: "TypeError",
number: -2146823281,
stack: "TypeError: Unable to get property 'destroyLayerInfo' of undefined or null reference
at _onLayersChange (http://jfsl-as-004v/Web/cmv/wab/2.4/jimu.js/LayerInfos/LayerInfos.js:840:11)
at Anonymous function (http://jfsl-as-004v/Web/arcgis_js_api/library/3.21/3.21/init.js:62:456)
at Anonymous function (http://jfsl-as-004v/Web/arcgis_js_api/library/3.21/3.21/init.js:650:194)
at c (http://jfsl-as-004v/Web/arcgis_js_api/library/3.21/3.21/init.js:119:178)
at removeLayer (http://jfsl-as-004v/Web/arcgis_js_api/library/3.21/3.21/init.js:597:104)
at Anonymous function (http://jfsl-as-004v/Web/arcgis_js_api/library/3.21/3.21/esri/dijit/BasemapGallery.js:199:152)
at n.forEach (http://jfsl-as-004v/Web/arcgis_js_api/library/3.21/3.21/init.js:70:422)
at _removeBasemapLayers (http://jfsl-as-004v/Web/arcgis_js_api/library/3.21/3.21/esri/dijit/BasemapGallery.js:199:128)
at updateBasemap (http://jfsl-as-004v/Web/cmv/widgets/Basemaps.js:158:21)
at setStartingBasemap (http://jfsl-as-004v/Web/cmv/widgets"
}
"TypeError: Unable to get property 'destroyLayerInfo' of undefined or null reference
at _onLayersChange (http://jfsl-as-004v/Web/cmv/wab/2.4/jimu.js/LayerInfos/LayerInfos.js:840:11)
at Anonymous function (http://jfsl-as-004v/Web/arcgis_js_api/library/3.21/3.21/init.js:62:456)
at Anonymous function (http://jfsl-as-004v/Web/arcgis_js_api/library/3.21/3.21/init.js:650:194)
at c (http://jfsl-as-004v/Web/arcgis_js_api/library/3.21/3.21/init.js:119:178)
at removeLayer (http://jfsl-as-004v/Web/arcgis_js_api/library/3.21/3.21/init.js:597:104)
at Anonymous function (http://jfsl-as-004v/Web/arcgis_js_api/library/3.21/3.21/esri/dijit/BasemapGallery.js:199:152)
at n.forEach (http://jfsl-as-004v/Web/arcgis_js_api/library/3.21/3.21/init.js:70:422)
at _removeBasemapLayers (http://jfsl-as-004v/Web/arcgis_js_api/library/3.21/3.21/esri/dijit/BasemapGallery.js:199:128)
at updateBasemap (http://jfsl-as-004v/Web/cmv/widgets/Basemaps.js:158:21)
at setStartingBasemap (http://jfsl-as-004v/Web/cmv/widgets"
Steps to reproduce:
- Include a JS Bin (or equivalent) link if possible. You can use this as a starting point
- Detail the exact steps taken to produce the problem
- Include a gif if possible; you can use LICEcap to make a gif: http://www.cockos.com/licecap/
- Check the browser console for errors (Use F12 to access the console)
Expected results:
Actual results:
Environment:
Software | Version |
---|---|
CMV Version | 2.0 beta 2 |
IE 11 | IE 11 |
Windows 7 | Windows 7 |