build-with-arcgis-maplibre
Build with MapLibre GL JS and ArcGIS
MapLibre ArcGIS is an Esri-supported open-source integration. MapLibre GL JS renders/styles; @esri/maplibre-arcgis loads supported ArcGIS resources including feature layers, vector tiles, basemaps, and basemap sessions. Use it for maps, data services, geocoding, routing, places, and other location services. It is not the ArcGIS Maps SDK for JavaScript.
Application requirements
If the application's development requirements are unclear, use the gather-arcgis-application-requirements skill to review project context and clarify consequential unknowns before proceeding. Then apply this skill's technology-specific guidance, reusing requirements already clear from the request or project.
ArcGIS account requirements
Developers must have one of the following ArcGIS accounts to create applications with ArcGIS: ArcGIS Location Platform (free), or ArcGIS Online or ArcGIS Enterprise with a Creator, Professional, or Professional Plus user type. The account's user type, role, and privileges provide access to different resources and operations.
Authentication
DO NOT SKIP: Refer to the follow-arcgis-authentication-patterns skill for ArcGIS authentication requirements, including the appropriate type of authentication for different audiences, use cases, and types of application. If the skill is not available, search the project for any existing authentication patterns, and if none are found, query esri-mcp-server-for-developer-documentation for authentication best practices.
Installation and setup
Always install maplibre-gl and @esri/maplibre-arcgis packages via CDN or NPM and import maplibre-gl/dist/maplibre-gl.css for CSS. Use the API reference for current URLs and supported versions. For geocoding, routing, and other ArcGIS Location Services, use ArcGIS REST JS.