MapView用于创建二维地图平面。
引用“esri/Map”,"esri/views/MapView"
具体做法并举例:var map = new Map({basemap:"streets"});
var view = new MapView({
container:"viewDiv",
map:map,
zoom:4
center:[15,65]});
SceneView用于创建三维地图平面
引用"esri/Map","esri/views/SceneView"
具体做法并举例:var map = new Map({
basemap:"streets",
ground:"world-elevation"});//ground只用于创建3维地图的时候设置地图表层的地形
var view = new SceneView({
container:"viewDiv",
map:map,
scale:50000000,//scale是设置中心处的缩放尺度,设置完成时立即转到中心处视图
center:[15,65]});