To start building applications, follow the steps below:
1. Sign in with an ArcGIS account
To access ArcGIS location services, you need an ArcGIS Developer account or ArcGIS Online account.
2. Get an API key
Create, manage, and scope API keys in your developer dashboard. Learn more in this tutorial.
3. Build a simple mapping app
Use your API key to access the basemap styles service and display a map.
Steps
-
Open the code in .
-
Replace the
api
with your API key from the developer dashboard .Key Use dark colors for code blocks <script> const apiKey = "YOUR_API_KEY"; const basemapEnum = "arcgis/navigation"; // Basemap layer style const map = new maplibregl.Map({ container: "map", // ID of the div element style: `https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/styles/${basemapEnum}?token=${apiKey}`, zoom: 1, center: [-20, 20] // Starting location [longitude, latitude] }); </script>
4. Explore tutorials
Follow step-by-step tutorials to learn how to use MapLibre GL JS with other services.

Display a map
Create and display a map with the basemap styles service.

Search for an address
Find an address or place using a search box and the geocoding service.

Find a route and directions
Find a route and directions with the route service.
5. Deploy your application
Learn about general guidelines and the Terms of use before distributing your application.