src/js/actions/MapActions.js
/**
  * Simple method to create a new SceneView
  * @param {object} mapConfig - config object containing id and options
  * @return {Promise} deferred - Promise that resolves on map load event
  */
Simple method to create a new SceneView
@param {object} mapConfig - config object containing id and options
@return {Promise} deferred - Promise that resolves on map load event
Simple method to create a new SceneView @param { object } mapConfig - config object containing id and options @return { Promise } deferred - Promise that resolves on map load event
createSceneView (mapConfig) {
    app.debug('MapActions >>> createSceneView');
    if (app.view) { app.view.destroy(); }
    var deferred = new Promise((resolve) => {
      app.map = new EsriMap(mapConfig.options);
      app.view = new SceneView({
        camera: mapConfig.sceneView.camera,
        zoom: mapConfig.sceneView.zoom,
        container: mapConfig.id,
        map: app.map
      });
      app.map.then(() => {
        this.setViewType(constants.viewTypes.scene);
        resolve();
      });
    });
    return deferred;
  }
createSceneView ( mapConfig ) { app . debug ( 'MapActions >>> createSceneView' ) ; if ( app . view ) { app . view . destroy ( ) ; } var deferred = new Promise ( ( resolve ) => { app . map = new EsriMap ( mapConfig . options ) ; app . view = new SceneView ( { camera : mapConfig . sceneView . camera , zoom : mapConfig . sceneView . zoom , container : mapConfig . id , map : app . map } ) ; app . map . then ( ( ) => { this . setViewType ( constants . viewTypes . scene ) ; resolve ( ) ; } ) ; } ) ; return deferred ; }
Simple method to create a new SceneView
 @param {object} mapConfig - config object containing id and options
 @return {Promise} deferred - Promise that resolves on map load event
Simple method to create a new SceneView @param { object } mapConfig - config object containing id and options @return { Promise } deferred - Promise that resolves on map load event