ArcGIS: BaseMap
✓ Published1🌍 Public
This example uses ArcGIS API for JavaScript and D3 v5 to create an interactive base map viewer. It shows how a user can switch between multiple ArcGIS basemaps (such as hybrid, streets, and terrain) and toggle between 2D MapView and 3D SceneView perspectives using two D3 dropdown menus. The 2D view centers on coordinates [34.8021, 38.9968] with a zoom level of 4, while the 3D view includes world-elevation ground and a perspective camera. The interface renders the map in a full-page div using ArcGIS’s `Map` and `MapView`/`SceneView` classes.
AI-generated descriptionMIT Licensed