AnsweredAssumed Answered

basemap-change event not called in 3.20

Question asked by bb1769 on Apr 17, 2017
Latest reply on Apr 17, 2017 by bb1769

The basemap-changed event does not appear to fire correctly in the 3.20 version of the API. It doesn't work in my app, nor in the simple basemap gallery sample in the sandbox. I called up the sample at https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=widget_basemap, and then inserted a handler for the event just before the close of the script:

 map.on("basemap-change", function(e){
   console.log(e.current);
});

Nothing gets logged when the basemap changes. Is there some other way to get this to work? Or is it not really called when the basemap layer changes?

Outcomes