/arcgis-sdks-and-apis-plugin:build-with-arcgis-and-openlayersfrom arcgis-sdks-and-apis-plugin
Builds browser-based mapping apps combining OpenLayers with ArcGIS basemaps, feature services, tiles, geocoding, routing, and authentication. Covers ESM setup, ol-mapbox-style, ArcGIS REST JS, projections, queries, styling, popups, and performance.
Ships in arcgis-sdks-and-apis-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
OpenLayers (OL) renders browser maps with ArcGIS services. Use ol (maps/layers), ol-mapbox-style (ArcGIS Basemap Styles v2), and ArcGIS REST JS (@esri/arcgis-rest-*; auth, queries, location services).
OpenLayers is not an ArcGIS Maps SDK: it has no FeatureLayer/WebMap classes and does not interpret ArcGIS popup templates or renderers. Resolve endpoints and translate ArcGIS JSON explicitly.
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.
Developers must have one of the following ArcGIS accounts to create applications: 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.
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 the Esri MCP server for developer documentation for authentication best practices.
Use ol-mapbox-style for vector basemaps and REST JS for location services including geocoding, routing, elevation, geoenrichment, and authentication. Load OpenLayers CSS, give the map container a definite non-zero width/height, serve over HTTP(S), never file://, and verify current APIs/versions.
Infer requirements from the prompt/project; clarify uncertainties before scaffolding.
Use current ArcGIS OpenLayers examples: link ol.css as a stylesheet; load dist/ol.js, and needed REST JS UMD scripts in dependency order. These bundles expose globals; don't load them as ESM. Check URLs/versions via MCP. Most ArcGIS documentation shows CDN imports; use them for testing, demos, tutorials, samples, and lightweight quickstarts.
Use npm create ol-app my-app or Vite unless a framework is specified. Install ol, ol-mapbox-style, and any required @esri/arcgis-rest-* packages (request, feature-service, geocoding, routing, places). Use ESM imports and import ol/ol.css through the bundler; pin compatible versions per ol-mapbox-style notes. Prefer this for production, larger, or framework apps; use the project's package manager. React, Angular, Vue, and Svelte are supported frameworks. If using a framework-specific template other than create ol-app, remove all template files that are not relevant to the user's request (e.g. counter.js).
Before installing, identify package manager/lockfile, framework, CDN vs modules, TypeScript/ESLint config, and bundler. Conform; add only needed ol, ol-mapbox-style, and REST JS packages. Preserve credential/environment conventions, import ol/ol.css, size the map, and check compatibility before upgrades.
Installing this skill individually does not configure Esri MCP server for developer documentation (esri-mcp-server-for-developer-documentation). Add that server at https://developers-mcp.arcgis.com/mcp using your client's MCP settings, or install the full ArcGIS SDKs and APIs plugin (arcgis-sdks-and-apis-plugin). If the MCP server is unavailable, consult the linked official Esri documentation.
Documentation can be queried using the Esri MCP server for developer documentation (esri-mcp-server-for-developer-documentation):
https://developers-mcp.arcgis.com/mcp
Use the search_esri_developer_docs tool to surface authoritative documentation pages with openlayers as the focus_area parameter in addition to a specified search_term; use the arcgis-rest-js focus area for ArcGIS REST JS queries. Use the fetch_esri_developer_doc tool with the page_url parameter set to return the full content of a documentation page in Markdown format.
Clearly indicate any recommendations and assumptions that are not grounded in the official documentation. If the MCP server is unavailable, consult official documentation URLs below.
ApiKeyManager.fromKey(apiKey) from @esri/arcgis-rest-request as REST JS authentication. Grant least privileges/item access; restrict browser keys by referrer. Browser keys are visible, even when set via build-time env vars. Never expose client secrets.ArcGISIdentityManager with PKCE and exact redirect URIs.tileLoadFunction; never expose client secrets or log tokenized URLs.arcgis-rest-js and follow-esri-authentication-patterns skills.ol-mapbox-style apply(layerGroup, styleUrl) to a dedicated LayerGroup, then add it to the map.FeatureServer/<layerId>) with REST JS. Parse with EsriJSON/GeoJSON and add to VectorSource. Set read options dataProjection to response CRS and featureProjection to view CRS. Use bbox from ol/loadingstrategy.js for viewport loading; assign stable feature IDs from service object IDs to avoid duplicates. On loader failure, removeLoadedExtent(extent) permits reloading but does not trigger it; retry on a later load cycle or deliberate trigger, with bounded retries.drawingInfo.renderer); translate relevant symbols, unique-value/class-break rules, and scale limits into OpenLayers styles. Keep legends consistent with rendered symbols. Report unsupported renderer details rather than claiming faithful reproduction.applyEdits. Inspect each add/update/delete result; a resolved request can contain failed edits. Update/refresh only successful edits and surface failures.VectorTileLayer + VectorTileSource (ol/format/MVT) for large data/hit detection. Use ol-mapbox-style with the service's style JSON for published styling, or explicit OpenLayers styles for intentional overrides. Attributes vary by tile/zoom; use feature services for full queries/edits.TileLayer + XYZ with /MapServer/tile/{z}/{y}/{x}. Inspect tileInfo and the service spatial reference; verify tile size, origin, resolutions, and level IDs before assuming a standard XYZ grid. Configure a matching tile grid and level mapping when needed. For canvas export set crossOrigin: "anonymous" and verify service CORS; the option alone is insufficient.ImageLayer + ImageArcGISRest or TileLayer + TileArcGISRest for exported MapServer images.textContent; sanitize any HTML.EPSG:3857). Many ArcGIS location-service examples use WGS 84 (EPSG:4326) coordinates in [longitude, latitude] order, but supported input and output spatial references vary by service and operation. Check the service requirements, and use fromLonLat / toLonLat when converting between geographic coordinates and the map view projection. For non-default views, register unsupported projections as needed and pass the actual view projection to fromLonLat/toLonLat and ol/sphere measurements.inSR to the input geometry's spatial reference and outSR to the requested output CRS; do not hardcode 3857 for non-Web-Mercator views.EsriJSON/GeoJSON); set reader dataProjection and featureProjection.ol/sphere for real-world distance/area; Web Mercator planar measurements distort, especially at high latitudes.?f=pjson for maxRecordCount and capabilities.exceededTransferLimit, use resultOffset/resultRecordCount only if supported, with stable ordering where supported; otherwise retrieve object IDs and query them in batches. See Query docs.outFields; set returnGeometry: false for attribute-only queries.bbox loading retains features as users pan; choose bounded caching or viewport replacement. Keep loaded-extent bookkeeping consistent with feature eviction so revisiting an area reloads missing data.where clauses from known fields and validated/escaped values, never raw user input.layerFilter in forEachFeatureAtPixel.useEffect, onMounted, ngAfterViewInit) after DOM mount; keep map in a ref/service, not reactive state.unByKey listeners, remove controls/overlays, cancel pending work/observers, and call map.setTarget(undefined) to detach the map. Ignore late async results after teardown.map.updateSize() when the container resizes or becomes visible.tileloaderror, imageloaderror, featuresloaderror); make errors actionable without exposing tokens.inSR/outSR, request needed data, handle limits, and render correctly.updateSize().What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub esri/esri-developer-agent-skills --plugin arcgis-sdks-and-apis-plugin15 skills in this plugin
/build-with-arcgis-and-cesiumjsBuild and troubleshoot browser-based 3D mapping apps with CesiumJS and ArcGIS. Use for ArcGIS basemaps, terrain, feature and map services, I3S/scene layers, geocoding, routing, places, and spatial analysis. Guide setup, authentication, ArcGIS REST JS integration, coordinate handling, attribution, and performance using current Esri documentation./build-with-arcgis-api-for-pythonUse when working with ArcGIS API for Python (ArcGIS Python API, Python API for ArcGIS, Esri Python API), the arcgis Python package/library/module, or arcgis-mapping (arcgis.map). Covers scripts/notebooks, setup, authentication, Spatially Enabled DataFrames (SEDF), queries/edits, publishing, portal administration, cloning/dependencies, Web Maps/Web Scenes, analysis, geocoding, routing and arcgis.ai for ArcGIS Online, Enterprise and Location Platform. Not for ArcPy-only tasks or non-Python SDKs./build-with-arcgis-maplibreUse for displaying maps in a browser environment with MapLibre GL JS and ArcGIS services with @esri/maplibre-arcgis: Render ArcGIS basemaps, styles, sessions, feature layers, vector tiles, queries, and location services with authentication. Covers install, setup, debug, documentation, best practices, guidelines, explanations, and validation./build-with-arcgis-maps-sdk-for-dotnetUse this skill when building or extending native GIS applications with ArcGIS Maps SDK for .NET. Choose it for WPF or WinUI apps on Windows, or .NET MAUI apps for Windows, Android, iOS, and Mac Catalyst. Follow its guidance to set up and license the SDK, configure authentication, display 2D maps and 3D scenes, use ArcGIS Online, ArcGIS Enterprise, or ArcGIS Location Platform maps and services, and implement location, offline workflows, geocoding, routing, spatial analysis, editing, and synchronization. Use it for SDK-specific architecture, toolkit integration, validation, and platform considerations; consult follow-esri-authentication-patterns to select an authentication model./build-with-arcgis-maps-sdk-for-flutterUse this skill to build, extend, debug, and explain native iOS and Android apps with ArcGIS Maps SDK for Flutter. Guide SDK setup, authentication, maps and scenes, layers, location, offline workflows, and optional Toolkit widgets./build-with-arcgis-maps-sdk-for-javascriptArcGIS Maps SDK for JavaScript (@arcgis/core, @arcgis/*-components, @arcgis/create) skill for frontend application development, and its public documentation. Use when building, designing, configuring, debugging, upgrading, or explaining an app that uses the SDK - including Core API modules, web components/custom elements, widgets, maps, scenes, link charts, layers, graphics, popups, Arcade, geometry operators, queries/SQL, utility network, CIMSymbols, authentication, routing, editing, guides, tutorials, samples, references, release notes, or app templates.Other plugins' skills for the same job