ArcGIS Playpit
This page is to demonstrate the ArcGIS Maps SDK for JavaScript.
A basic example
<script>
require(["esri/Map", "esri/views/MapView"], function(Map, MapView) {
// 1. Create the Map model
const myMap = new Map({
basemap: "streets-vector"
});
// 2. Create the View (the actual visual component)
const view = new MapView({
container: "viewDiv",
map: myMap,
zoom: 13,
center: [-1.4701, 53.3811] // Longitude, Latitude (Sheffield)
});
});
</script>