Get started

  1. Install and set up the API
  2. Get an API key (access services)
  3. Start the Display a map (2D) tutorial

1. Install and set up

There are multiple options for bringing the ArcGIS Maps SDK for JavaScript into your app. The most common way is to use the AMD modules via ArcGIS CDN, however you can also use ES modules for local builds. For more information, see Install and set up.

Use dark colors for code blocksCopy
<link rel="stylesheet" href="">
<script src=""></script>

2. Get an API key

API keys are required to access ArcGIS services, such as basemaps, geocoding, and routing. Visit your dashboard and copy your default API key, or set custom scopes and referrers for your specific needs. Include your API key in the tutorials and samples when required in the instructions. You can use a global API key, as well as more fine-grained API keys on specific classes.

  1. Log in to your dashboard.
  2. Copy your default API key, or generate a new one.

3. Tutorials

Display a map

Display a map

Display your location

Display your location

Add a point, line, and polygon

Add a point, line, and polyline

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.