Index of every page on this site: llms.txt
All skills
esri avatar

/build-with-arcgis-maps-sdk-for-javascript

@b6fcac5
Run it yourself

ArcGIS 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.

Use this Skill: https://skilld.dev/gh/esri/esri-developer-agent-skills/build-with-arcgis-maps-sdk-for-javascript

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencessharing-data.md

≈352 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Sharing data across components

When a map, chart, and/or feature table use the same layer, pass the same layer instance to each component so they share the same underlying data and state.

  • arcgis-feature-table: Set map-layer-id and reference-element to use a layer from the map component.
  • arcgis-chart:
    • In SDK v5.2 or later, set reference-element to the map component's ID and map-layer-id to the layer's id, not its portal item ID. A chart inside the map component can omit reference-element.
    • Set chart-index to select a saved chart. If omitted, the first chart is used. An out-of-range index also uses the first chart and emits a warning.
    • layer-item-id searches the connected map for a matching portal item ID first. If no layer matches, it creates a separate layer from the portal item.
    • For older SDKs or layers inside group layers, set layer to the map's layer instance and view to the map's view. The ID lookup added in SDK 5.2 searches only top-level layers.
    • When setting model directly, use one of the layer's saved charts entries. Set layer, view, and render options first. Clear model in teardown so a re-render does not leave an orphaned chart instance.
    • Check that the chart's layer is in the map: viewElement.map.allLayers.includes(chartElement.layer). Use allLayers, not layers, which omits layers nested in group layers.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts8d3 checks · Risk SAFE
  • Gen Agent Trust Hub8d

    The skill provides comprehensive instructions for developing applications with the ArcGIS Maps SDK for JavaScript, utilizing official vendor tools from Esri for project scaffolding and documentation retrieval. It includes guidance on using a vendor-provided MCP server for authoritative documentation. A standard vulnerability surface exists where user-supplied project and template names are used in shell commands during application creation.

  • Socket8d

    No alerts

  • Snyk8d

    Risk: LOW · No issues

Signed by skilld at b6fcac5. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated last week

README badge

README badge for esri/esri-developer-agent-skills/build-with-arcgis-maps-sdk-for-javascript