samples/amd/js/actions/MapActions.js
function setBasemap(basemap) {
      app.debug('MapActions >>> setBasemap');
      app.map.setBasemap(basemap);
      _jsDispatcher.Dispatcher.dispatch({
        actionType: _jsConstantsAppConstants.MAP.basemap,
        data: basemap
      });
    }
function setBasemap(basemap) {
      app.debug('MapActions >>> setBasemap');
      app.map.setBasemap(basemap);
      _jsDispatcher.Dispatcher.dispatch({
        actionType: _jsConstantsAppConstants.MAP.basemap,
        data: basemap
      });
    }
function setBasemap ( basemap ) { app . debug ( 'MapActions >>> setBasemap' ) ; app . map . setBasemap ( basemap ) ; _jsDispatcher . Dispatcher . dispatch ( { actionType : _jsConstantsAppConstants . MAP . basemap , data : basemap } ) ; }
Method to update the basemap
@param {string} basemap - the value of the basemap to be updated, should come from config.js basemaps
Method to update the basemap