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:
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,542 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository47 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/arcgis-ai-components/AGENTS.mdAGENTS.md
- skills/arcgis-authentication/AGENTS.mdAGENTS.md
- skills/arcgis-charts/AGENTS.mdAGENTS.md
- skills/arcgis-coding-components/AGENTS.mdAGENTS.md
- skills/arcgis-core-maps/AGENTS.mdAGENTS.md
- skills/arcgis-editing/AGENTS.mdAGENTS.md
- skills/arcgis-embeddable-maps/AGENTS.mdAGENTS.md
- skills/arcgis-interaction/AGENTS.mdAGENTS.md
- skills/arcgis-layers/AGENTS.mdAGENTS.md
- skills/arcgis-starter-app/AGENTS.mdAGENTS.md
- skills/arcgis-widgets-ui/AGENTS.mdAGENTS.md
- arcgis-3d-layersSkill
- arcgis-advanced-layersSkill
- arcgis-ai-componentsSkill
- arcgis-arcadeSkill
- arcgis-authenticationSkill
- arcgis-chartsSkill
- arcgis-cim-symbolsSkill
- arcgis-coding-componentsSkill
- arcgis-coordinates-projectionSkill
- arcgis-core-mapsSkill
- arcgis-core-utilitiesSkill
- arcgis-custom-renderingSkill
- arcgis-editingSkill
- arcgis-embeddable-mapsSkill
- arcgis-feature-effectsSkill
- arcgis-geometry-operationsSkill
- arcgis-imagerySkill
- arcgis-interactionSkill
- arcgis-knowledge-graphsSkill
- arcgis-layersSkill
- arcgis-map-toolsSkill
- arcgis-performanceSkill
- arcgis-popup-templatesSkill
- arcgis-portal-contentSkill
- arcgis-rest-servicesSkill
- arcgis-scene-environmentSkill
- arcgis-smart-mappingSkill
- arcgis-spatial-analysisSkill
- arcgis-starter-appSkill
- arcgis-tables-formsSkill
- arcgis-time-animationSkill
- arcgis-utility-networksSkill
- arcgis-visualizationSkill
- arcgis-widgets-advancedSkill
- arcgis-widgets-uiSkill
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
- Very specific: line 59
All visual variables use stops to map data values to visual properties:
- Distinctive: line 82
All of these are valid color values:
≈ “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.
Files
Agent Guide: arcgis-visualization
Quick-reference decisions, checklists, and tables for renderers, symbols, and visual variables.
Renderer Type Decision Tree
- Do all features look the same?
- Yes -->
SimpleRenderer
- Yes -->
- Do features differ by a categorical field (e.g., type, status)?
- Yes -->
UniqueValueRenderer - Need grouped headings in the legend? --> Use
uniqueValueGroupsproperty
- Yes -->
- Do features differ by a numeric field (e.g., population, temperature)?
- Want discrete ranges (choropleth)? -->
ClassBreaksRenderer - Want continuous variation? -->
SimpleRenderer+ color/sizevisualVariables
- Want discrete ranges (choropleth)? -->
- Do you want a density heatmap (points only)?
- Yes -->
HeatmapRenderer
- Yes -->
- Do you want dot density (polygons only)?
- Yes -->
DotDensityRenderer
- Yes -->
- Do you want pie charts per feature?
- Yes -->
PieChartRenderer
- Yes -->
- Do you need military symbology (MIL-STD-2525)?
- Yes -->
DictionaryRenderer
- Yes -->
- Want the SDK to generate a renderer from data automatically?
- Yes --> See
arcgis-smart-mappingskill
- Yes --> See
Symbol Type Table by Geometry
| Geometry | 2D Symbol Types | 3D Symbol Types |
| Point | simple-marker, picture-marker, text | point-3d (icon, object layers), web-style |
| Polyline | simple-line | line-3d (line, path layers) |
| Polygon | simple-fill, picture-fill | polygon-3d (fill, extrude layers) |
| Mesh (3D) | N/A | mesh-3d |
2D Marker Styles
circle, square, cross, x, diamond, triangle
3D Object Primitives
cylinder, cone, cube, sphere, diamond
Visual Variable Reference
| Variable | Controls | Field Type | Example Use |
size | Symbol size | Numeric | Proportional symbols by population |
color | Symbol color | Numeric | Temperature gradient |
opacity | Symbol transparency | Numeric | Confidence/certainty fading |
rotation | Symbol rotation angle | Numeric | Wind 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
typeon the renderer (e.g.,"simple","unique-value","class-breaks") - Set
typeon every symbol (e.g.,"simple-marker","simple-fill") - For
UniqueValueRenderer: setfield,uniqueValueInfos(oruniqueValueGroups), anddefaultSymbol - For
ClassBreaksRenderer: setfield,classBreakInfoswithminValue/maxValue, anddefaultSymbol - For visual variables: add
visualVariablesarray to any renderer - For labels: set
layer.labelingInfoarray andlayer.labelsVisible = true - For TypeScript: use
as constorsatisfies __esri.*Propertieson 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
| Geometry | Common labelPlacement values |
| Point | above-center, below-center, center-center, above-left, above-right |
| Polyline | above-along, below-along, center-along |
| Polygon | always-horizontal |
Label expressions use Arcade syntax ($feature.fieldName), not JavaScript.
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
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.

