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: 836023
10 });
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 ...