原文:
最近ArcGIS推出了ArcGIS API for JavaScript 4.0,支持无插件3D显示,而且比较Unity和Skyline,速度要快很多,适合在智慧城市中小场景的三维模型应用。下面开始吧!
一、引入样式和js
二、导入三个js包
"esri/Map", "esri/views/SceneView"
require([ "esri/Map", "esri/views/SceneView", "dojo/domReady!" ], function (Map, SceneView) { });
三、创建地图对象
var map = new Map({ basemap: "streets", ground: "world-elevation" });
四、创建Scene视图
var view = new SceneView({ container: "viewDiv", //Div的ID map: map , scale: 50000000, center: [-101.17, 21.78] });
DOM对象
posted on 2016-08-18 18:37 阅读( ...) 评论( ...)