arcgis-popup-templates

Compose dynamic ArcGIS popup templates with text, fields, media, and Arcade expressions.

19|5|Updated Dec 14, 2025
One-click install
npx skills add https://github.com/SaschaBrunnerCH/arcgis-maps-sdk-js-ai-context --skill arcgis-popup-templates
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: arcgis-popup-templates
Source: https://github.com/SaschaBrunnerCH/arcgis-maps-sdk-js-ai-context/tree/main/contexts/4.34/skills/arcgis-popup-templates
Command: npx skills add https://github.com/SaschaBrunnerCH/arcgis-maps-sdk-js-ai-context --skill arcgis-popup-templates

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Configure and customize ArcGIS popup content to present rich, interactive information for map features, replacing static descriptions with dynamic templates.

Core Features & Use Cases

  • PopupTemplate composition: combine text, fields, media, attachments, expressions, and custom content to create engaging popups.
  • Content versatility: supports ContentTypes like text, fields, media, attachments, relationship data, and Arcade expressions for on-the-fly calculations.
  • Real-world use cases: tailor popups for cities, sites, or assets, showing demographics, images, and related records in a single, consistent UI across FeatureLayer, GeoJSONLayer, and GraphicsLayer.

Quick Start

Apply a PopupTemplate to a layer to render rich, dynamic popups with text, fields, media, and attachments.

Frequently Asked Questions about arcgis-popup-templates

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure dynamic ArcGIS popup content for map features?

Apply a PopupTemplate to your layer to compose dynamic popup content using text, fields, media, attachments, and Arcade expressions for on-the-fly calculations across map features.

Can I use Arcade expressions to calculate popup fields on the fly?

Yes, Arcade expressions enable on-the-fly calculations within popup templates, allowing you to dynamically compute and display values directly in the popup UI without altering the underlying data.

Does PopupTemplate work with FeatureLayer, GeoJSONLayer, and GraphicsLayer?

PopupTemplate works consistently across FeatureLayer, GeoJSONLayer, and Graphic-based layers, ensuring predictable rendering and data binding for rich popups across different layer types.

How do I display related records and attachments in an ArcGIS popup?

Display related records and attachments in an ArcGIS popup by configuring relationship content and attachment content types within your PopupTemplate composition to show linked data.

What is the best way to ensure predictable rendering when binding outFields in popup templates?

Ensure predictable rendering by defining required outFields and using JSON-based popup templates to establish strict data binding, guaranteeing that necessary attributes are available for the popup content.

Why does my popup template fail to render media or fields correctly?

Popup templates fail to render media or fields correctly when required outFields are not specified or the content array lacks proper data binding, preventing the popup from accessing necessary attributes.