3D
//2D mapping using a MapView
function (Map, MapView){
map = new Map({
basemap: "topo"
});
view = new MapView({
container: "viewDiv",
map: map
});
}
//3D mapping using a SceneView
function (Map, SceneView){
map = new Map({
basemap: "topo"
});
view = new SceneView({
container: "viewDiv",
map: map,
scale: 240000000
}
}
// v3.x
map.on("load", function() {
// map initialized
});
// v4.0
map.then( function() {
// map initialized
});
Promises
PUBLIC BETA
Around end of July 2015