agentleFS
geoai-latamgeoai-latam/SKILL_JS5_ARCGIS/skills/arcgis-popup-templates/AGENTS.md

SKILL_JS5_ARCGIS / arcgis-popup-templates

AGENTS.md1 starsChanged 6 months agoMITView on GitHub

Quick-reference for popups (SDK 5.1). Read before customizing feature info.

The file

Files
AGENTS.md

Agent Guide: arcgis-popup-templates

Quick-reference for popups (SDK 5.1). Read before customizing feature info.

Quick Decision Tree

  1. Fields + title? → string title + fields content block.
  2. Formatting? → fieldInfos[].format (digitSeparator, dateFormat, places); dates follow view.timeZone.
  3. Custom HTML? → content function returning an element, with template.outFields.
  4. Charts/images? → media content block.

Setup Checklist

  • Every field a content function reads is in template.outFields.
  • Decide the time zone for date fields (view.timeZone, default "system").
  • Set digitSeparator: true for counts.
  • Render user text with textContent if "<" must survive.

Anti-patterns (one-liner reminders)

  • ❌ A content function reading fields not in template.outFields (undefined).
  • ❌ UTC-midnight dates under the default time zone (previous day).
  • ❌ Expecting thousands separators without format.
  • ❌ Content functions that return nothing.

Files in This Skill

  • SKILL.md / SKILL.es.md — full guides
  • references/api-detail.md — PopupTemplate / content / format
  • references/examples.md — fields / text / custom
  • references/pitfalls.md — extended troubleshooting
  • scripts/snippet-popup-template.ts, snippet-popup-custom.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.