arcgis-embeddable-maps
Skill1 starsChanged 6 months agoMITView on GitHub
Embed a saved ArcGIS WebMap in any site with the ArcGIS Maps SDK for JavaScript 5.1 Embeddable Map: a CDN-only custom element (no npm package) loaded from its own script, js.arcgis.com/5.1/embeddable-components/ (the unified SDK script does not register it), plus an arcgis-embedded-map element with an item id. Tools are opt-in attributes (legend-enabled, bookmarks-enabled, ...). Use this skill whenever the user wants to embed or share a map with minimal code.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- GeoDaoyu/arcgis-maps-sdk-js-ai-contexttheir own version, first seen Nov 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- GeoDaoyu/arcgis-maps-sdk-js-ai-context★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository73 other files it gives its agents.
- skills/arcgis-3d-layers/AGENTS.mdAGENTS.md
- skills/arcgis-advanced-layers/AGENTS.mdAGENTS.md
- skills/arcgis-ai-components/AGENTS.mdAGENTS.md
- skills/arcgis-arcade/AGENTS.mdAGENTS.md
- skills/arcgis-authentication/AGENTS.mdAGENTS.md
- skills/arcgis-charts/AGENTS.mdAGENTS.md
- skills/arcgis-cim-symbols/AGENTS.mdAGENTS.md
- skills/arcgis-coding-components/AGENTS.mdAGENTS.md
- skills/arcgis-coordinates-projection/AGENTS.mdAGENTS.md
- skills/arcgis-core-maps/AGENTS.mdAGENTS.md
- skills/arcgis-core-utilities/AGENTS.mdAGENTS.md
- skills/arcgis-custom-rendering/AGENTS.mdAGENTS.md
- skills/arcgis-editing/AGENTS.mdAGENTS.md
- skills/arcgis-embeddable-maps/AGENTS.mdAGENTS.md
- skills/arcgis-feature-effects/AGENTS.mdAGENTS.md
- skills/arcgis-geometry-operations/AGENTS.mdAGENTS.md
- skills/arcgis-imagery/AGENTS.mdAGENTS.md
- skills/arcgis-interaction/AGENTS.mdAGENTS.md
- skills/arcgis-knowledge-graphs/AGENTS.mdAGENTS.md
- skills/arcgis-layers/AGENTS.mdAGENTS.md
- skills/arcgis-map-tools/AGENTS.mdAGENTS.md
- skills/arcgis-parquet/AGENTS.mdAGENTS.md
- skills/arcgis-performance/AGENTS.mdAGENTS.md
- skills/arcgis-popup-templates/AGENTS.mdAGENTS.md
- skills/arcgis-portal-content/AGENTS.mdAGENTS.md
- skills/arcgis-rest-services/AGENTS.mdAGENTS.md
- skills/arcgis-scene-environment/AGENTS.mdAGENTS.md
- skills/arcgis-smart-mapping/AGENTS.mdAGENTS.md
- skills/arcgis-spatial-analysis/AGENTS.mdAGENTS.md
- skills/arcgis-starter-app/AGENTS.mdAGENTS.md
- skills/arcgis-tables-forms/AGENTS.mdAGENTS.md
- skills/arcgis-time-animation/AGENTS.mdAGENTS.md
- skills/arcgis-utility-networks/AGENTS.mdAGENTS.md
- skills/arcgis-visualization/AGENTS.mdAGENTS.md
- skills/arcgis-widgets-advanced/AGENTS.mdAGENTS.md
- skills/arcgis-widgets-ui/AGENTS.mdAGENTS.md
- skills/hello-world/AGENTS.mdAGENTS.md
- arcgis-3d-layersSkill
- arcgis-advanced-layersSkill
- arcgis-ai-componentsSkill
- arcgis-arcadeSkill
- arcgis-authenticationSkill
- arcgis-chartsSkill
- arcgis-cim-symbolsSkill
- arcgis-coding-componentsSkill
- arcgis-coordinates-projectionSkill
- arcgis-core-mapsSkill
- arcgis-core-utilitiesSkill
- arcgis-custom-renderingSkill
- arcgis-editingSkill
- arcgis-feature-effectsSkill
- arcgis-geometry-operationsSkill
- arcgis-imagerySkill
- arcgis-interactionSkill
- arcgis-knowledge-graphsSkill
- arcgis-layersSkill
- arcgis-map-toolsSkill
- arcgis-parquetSkill
- arcgis-performanceSkill
- arcgis-popup-templatesSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 106
Every tool attribute is a boolean that defaults to false: legend-enabled, bookmarks-enabled, basemap-gallery-enabled, heading-enabled, …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Embeddable Maps
When to use: Activate this skill whenever the user wants to embed or share a saved WebMap with minimal code. Embeddable Maps are CDN-only — there is no npm package.
Overview
The Embeddable Map renders a saved WebMap from one script tag and one custom element.
- Problem it solves: drop a configured map into any page without a build pipeline.
- Who it serves: content authors and developers embedding maps quickly.
- Pattern it teaches: the embeddable-components script +
arcgis-embedded-mapwith anitem-id. - What it does NOT cover: custom app logic (see
arcgis-core-maps) or content discovery (arcgis-portal-content).
Quick Start
<script type="module" src="https://js.arcgis.com/5.1/embeddable-components/"></script>
<arcgis-embedded-map item-id="10f5128431d44f9180d9936834100ac5" legend-enabled></arcgis-embedded-map>Measured with Chromium (2026-10-27): this registers the element and loads the public WebMap
("Educational Attainment and Household Size", 2 layers); el.webMap.loadStatus === "loaded".
Decision Tree
- Just need a saved map on a page?
- Yes → Embeddable Map (its own script + element).
- Need custom layers/logic/interactions?
- Yes → build with Map Components / Core API instead (see
arcgis-core-maps).
- Yes → build with Map Components / Core API instead (see
- No build tooling available?
- Yes → Embeddable Map (pure HTML/CDN). The full SDK also works from the CDN
(
https://js.arcgis.com/5.1/), but that script does not includearcgis-embedded-map.
- Yes → Embeddable Map (pure HTML/CDN). The full SDK also works from the CDN
(
Default: Embeddable Map for share/embed; the full SDK for custom apps.
Import Patterns
Direct ESM (recommended for npm/Vite/Webpack)
Not applicable: @arcgis/embeddable-components is not on npm (404, checked 2026-10-27).Dynamic Imports (CDN)
<script type="module" src="https://js.arcgis.com/5.1/embeddable-components/"></script>Map Components (recommended for new projects)
For full apps use @arcgis/map-components (arcgis-map). Embeddable Maps are for quick embeds.Key Concepts
Concept 1: Its own CDN script
The embeddable components ship separately from the SDK:
https://js.arcgis.com/5.1/embeddable-components/ (5.1). Measured: the unified
https://js.arcgis.com/5.1/ script registers arcgis-map, charts and Calcite, but
customElements.get("arcgis-embedded-map") stays undefined: the tag renders as an empty
element, with no error. There is no npm package.
Concept 2: item-id drives everything
The item-id points to a saved WebMap; the element renders its basemap, layers and popups. The
loaded WebMap is readable as el.webMap. portal-url points to ArcGIS Enterprise, and api-key
carries a key for items or services that need one.
Concept 3: Tools are opt-in
Every tool attribute is a boolean that defaults to false: legend-enabled, bookmarks-enabled,
basemap-gallery-enabled, heading-enabled, information-enabled, share-enabled,
locate-enabled, track-enabled, floor-filter-enabled, time-zone-label-enabled,
scroll-enabled (mouse-wheel zoom). The only negative one is fullscreen-disabled. theme is
light or dark; center, scale and extent set the initial view.
Common Pitfalls (Top 3)
Pitfall 1: Loading the SDK script instead of the embeddable one
<!-- ❌ Anti-pattern -->
<script type="module" src="https://js.arcgis.com/5.1/"></script>
<arcgis-embedded-map item-id="..."></arcgis-embedded-map><!-- ✅ Correct -->
<script type="module" src="https://js.arcgis.com/5.1/embeddable-components/"></script>
<arcgis-embedded-map item-id="..."></arcgis-embedded-map>Impact: measured: the element is never defined, the page shows an empty box and the console
has no error. The same happens with /5.0/. Do not npm install it either: the package does not
exist.
Pitfall 2: hide-* attributes
<!-- ❌ Anti-pattern -->
<arcgis-embedded-map item-id="..." hide-bookmarks></arcgis-embedded-map><!-- ✅ Correct -->
<arcgis-embedded-map item-id="..." legend-enabled></arcgis-embedded-map>Impact: hide-legend, hide-bookmarks and hide-zoom are not attributes of the element
(not in its observedAttributes) and do nothing. The legend and bookmarks are already off: measured
legendEnabled and bookmarksEnabled are false unless you add the *-enabled attribute.
Pitfall 3: Private webmap without access
<!-- ❌ Anti-pattern -->
<arcgis-embedded-map item-id="<private-item>"></arcgis-embedded-map><!-- ✅ Correct -->
<!-- Share the item publicly, or pass an api-key whose privileges cover it. -->Impact: the map fails to load for anonymous viewers (not measured here: no private item was used).
When to Read references/
| If you need... | Read |
| Element attributes | references/api-detail.md |
| Embed / share examples | references/examples.md |
| More pitfalls (5+ extended) | references/pitfalls.md |
Related Skills
arcgis-portal-content— find the webmap item idarcgis-core-maps— build a custom app insteadarcgis-widgets-ui— components for full apps
Reference Samples
Changelog
- 0.2.0 (2026-10-27): SDK 5.1. The skill did not work: the unified
js.arcgis.com/5.0/script does not registerarcgis-embedded-map(measured with 5.0 and 5.1: empty element, no error); the embeddable components have their own script,js.arcgis.com/5.1/embeddable-components/. Thehide-*attributes do not exist: tools are opt-in*-enabledbooleans, allfalseby default (legend and bookmarks were said to be on). The zero-height and duplicate-script pitfalls did not reproduce. Run intests/runtime/embebido.mjs. - 0.1.0 (2026-05-31): Initial release.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

