© Rene Rubalcava 2017

Rene Rubalcava, Introducing ArcGIS API 4 for JavaScript, https://doi.org/10.1007/978-1-4842-3282-8_3

3. Maps and Views

Rene Rubalcava

(1)Rialto, California, USA

The newest version of the ArcGIS API creates maps differently than version 3.x.

 1   import Map from "esri/Map"; 2   import SceneView from "esri/views/SceneView"; 3    4   const map = new Map({ basemap: "topo" }); 5   const view = new SceneView({ 6     container: "mainDiv", 7     map, 8     center: [-118.182, 33.913], 9     scale: 83602310   });

There is now a distinct difference between the map (and the layers that comprise a map) and how that map data is displayed. You can now think of the map as the data source and think of the view as the visual representation of ...

Get Introducing ArcGIS API 4 for JavaScript: Turn Awesome Maps into Awesome Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.