agentleFS
geoai-latamgeoai-latam/SKILL_JS5_ARCGIS/skills/arcgis-core-maps/AGENTS.md

SKILL_JS5_ARCGIS / arcgis-core-maps

AGENTS.md1 starsChanged 6 months agoMITView on GitHub

Quick-reference for creating maps and scenes. Read before deciding API or generating code. 3. Need view internals before render? - Yes → view.when() (Core) or await el.viewOnReady() then el.view (Components): the arcgisViewReadyChange detail is null, never event.detail.view.

  • Reads credentials
  • Installs packages

The file

Files
AGENTS.md

Agent Guide: arcgis-core-maps

Quick-reference for creating maps and scenes. Read before deciding API or generating code.

Quick Decision Tree

  1. New project / quick embed?
    • Yes → Map Components (<arcgis-map> / <arcgis-scene>).
    • No → Core API.
  2. 2D or 3D?
    • 2D → MapView (or <arcgis-map>).
    • 3D → SceneView (or <arcgis-scene>), set map.ground for terrain.
  3. Need view internals before render?
    • Yes → view.when() (Core) or await el.viewOnReady() then el.view (Components): the arcgisViewReadyChange detail is null, never event.detail.view.

Setup Checklist

  • pnpm add @arcgis/core @arcgis/map-components.
  • esriConfig.apiKey = import.meta.env.VITE_ARCGIS_API_KEY (required for basemap styles).
  • Give the container/element a non-zero height (html,body,arcgis-map { height: 100% }).
  • Read view only after ready; without an API key or a height it never gets there.

Anti-patterns (one-liner reminders)

  • ❌ Don't read el.view before arcgisViewReadyChange.
  • ❌ Don't omit the API key — basemap styles 401 to a grey canvas.
  • ❌ Don't pass camera to MapView (2D); use SceneView.
  • ❌ Don't forget the .js extension in @arcgis/core/* imports.

Files in This Skill

  • SKILL.md / SKILL.es.md — full guides
  • references/api-detail.md — Map/MapView/SceneView signatures
  • references/examples.md — 2D, 3D, and webmap examples
  • references/pitfalls.md — extended troubleshooting
  • scripts/snippet-mapview.ts, snippet-sceneview.ts, snippet-map-component.ts

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.