地图底图的类型——MapView,SceneView
程序员文章站
2022-07-10 11:55:05
MapView用于创建二维地图平面。 引用“esri/Map”,"esri/views/MapView" 具体做法并举例:var map = new Map({basemap:"streets"}); var view = new MapView({ container:"viewDiv", map ......
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]});
上一篇: mysql存储之int