Months of useless ArcGIS API for JavaScript, go to the official website to see, the latest API is 4.0, also began to support the first, run to see it.
1 <!DOCTYPE HTML>2 <HTML>3 <Head>4 <MetaCharSet= "Utf-8">5 <Metaname= "Viewport"content= "initial-scale=1, maximum-scale=1, User-scalable=no">6 <title>Get started with sceneview-create a 3D map</title>7 <style>8 html, body, #viewDiv{9 padding:0;Ten margin:0; One Height:100%; A width:100%; - } - </style> the <Linkrel= "stylesheet"href= "Https://js.arcgis.com/4.0/esri/css/main.css"> - <Scriptsrc= "https://js.arcgis.com/4.0/"></Script> - <Script> - require ([ + "Esri/map", - "Esri/views/sceneview", + "dojo/domready!" A ], function(Map, Sceneview) { at varMap= NewMap ({ - Basemap:"Streets", - Ground:"world-elevation" - }); - varView= NewSceneview ({ - Container:"Viewdiv", //Reference to the scene div created in step 5 in Map:map,//Reference to the map object created before the scene - Scale :50000000, //sets the initial scale to 1:50,000,000 to Center: [-101.17, 21.78] //Sets the center Point's view with Lon/lat + }); - }); the </Script> * </Head> $ <Body>Panax Notoginseng <DivID= "Viewdiv"></Div> - </Body> the </HTML>
ArcGIS API for JavaScript