agentleFS
GeoDaoyuGeoDaoyu/arcgis-maps-sdk-js-ai-context/skills/arcgis-visualization/AGENTS.md

arcgis-maps-sdk-js-ai-context / arcgis-visualization

AGENTS.md0 starsChanged 7 months agoMITView on GitHub

Quick-reference decisions, checklists, and tables for renderers, symbols, and visual variables. circle, square, cross, x, diamond, triangle cylinder, cone, cube, sphere, diamond All visual variables use stops to map data values to visual properties: Rotation uses field directly (no stops needed) with rotationType: "geographic" or "arithmetic". All of these are valid color values:

The file

We split this AGENTS.md into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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
  1. Very specific:

    All visual variables use stops to map data values to visual properties:

    line 59
  2. Distinctive:

    All of these are valid color values:

    line 82

≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Agent Guide: arcgis-visualization

Quick-reference decisions, checklists, and tables for renderers, symbols, and visual variables.

Renderer Type Decision Tree

  1. Do all features look the same?
    • Yes --> SimpleRenderer
  2. Do features differ by a categorical field (e.g., type, status)?
    • Yes --> UniqueValueRenderer
    • Need grouped headings in the legend? --> Use uniqueValueGroups property
  3. Do features differ by a numeric field (e.g., population, temperature)?
    • Want discrete ranges (choropleth)? --> ClassBreaksRenderer
    • Want continuous variation? --> SimpleRenderer + color/size visualVariables
  4. Do you want a density heatmap (points only)?
    • Yes --> HeatmapRenderer
  5. Do you want dot density (polygons only)?
    • Yes --> DotDensityRenderer
  6. Do you want pie charts per feature?
    • Yes --> PieChartRenderer
  7. Do you need military symbology (MIL-STD-2525)?
    • Yes --> DictionaryRenderer
  8. Want the SDK to generate a renderer from data automatically?
    • Yes --> See arcgis-smart-mapping skill

Symbol Type Table by Geometry

Geometry2D Symbol Types3D Symbol Types
Pointsimple-marker, picture-marker, textpoint-3d (icon, object layers), web-style
Polylinesimple-lineline-3d (line, path layers)
Polygonsimple-fill, picture-fillpolygon-3d (fill, extrude layers)
Mesh (3D)N/Amesh-3d

2D Marker Styles

circle, square, cross, x, diamond, triangle

3D Object Primitives

cylinder, cone, cube, sphere, diamond

Visual Variable Reference

VariableControlsField TypeExample Use
sizeSymbol sizeNumericProportional symbols by population
colorSymbol colorNumericTemperature gradient
opacitySymbol transparencyNumericConfidence/certainty fading
rotationSymbol rotation angleNumericWind direction arrows

All visual variables use stops to map data values to visual properties:

stops: [
  { value: <low>,  size/color/opacity: <min> },
  { value: <high>, size/color/opacity: <max> }
]

Rotation uses field directly (no stops needed) with rotationType: "geographic" or "arithmetic".

Renderer Construction Checklist

  • Set type on the renderer (e.g., "simple", "unique-value", "class-breaks")
  • Set type on every symbol (e.g., "simple-marker", "simple-fill")
  • For UniqueValueRenderer: set field, uniqueValueInfos (or uniqueValueGroups), and defaultSymbol
  • For ClassBreaksRenderer: set field, classBreakInfos with minValue/maxValue, and defaultSymbol
  • For visual variables: add visualVariables array to any renderer
  • For labels: set layer.labelingInfo array and layer.labelsVisible = true
  • For TypeScript: use as const or satisfies __esri.*Properties on autocast objects

Color Formats

All of these are valid color values:

  • Named: "red", "blue", "transparent"
  • Hex: "#FF0000", "#f00"
  • RGB array: [255, 0, 0]
  • RGBA array: [255, 0, 0, 0.5] (0.5 = 50% opacity)

Labeling Quick Reference

GeometryCommon labelPlacement values
Pointabove-center, below-center, center-center, above-left, above-right
Polylineabove-along, below-along, center-along
Polygonalways-horizontal

Label expressions use Arcade syntax ($feature.fieldName), not JavaScript.

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.