Quickstart Guide to ArcGIS Maps SDK for JavaScript

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" />
    <title>Quickstart Guide to ArcGIS Maps SDK for JavaScript</title>
    <style>
      html, body, #map-view-div {
        padding: 0;
        margin: 0;
        height: 100%;
        width: 100%;
      }
    </style>
    <link rel="stylesheet" href="https://js.arcgis.com/4.28/esri/themes/light/main.css" />
    <script src="https://js.arcgis.com/4.28/"></script>
    <script>
      require(["esri/Map", "esri/views/MapView"], (Map, MapView) => {
        const map = new Map({
          basemap: "osm"
        });
        const view = new MapView({
          container: "map-view-div",
          map: map,
          zoom: 15,
          center: [25.2797, 54.6872]
        });
      });
    </script>
  </head>
  <body>
    <div id="map-view-div"></div>
  </body>
</html>

Leave a Comment