arcgis-cim-symbols
Skill1 starsChanged 6 months agoMITView on GitHub
Build advanced multi-layered symbols with CIMSymbol in the ArcGIS Maps SDK for JavaScript 5.1. Covers the CIM JSON structure (CIMSymbolReference, point/line/ polygon symbols, symbol layers, vector markers) and when CIM beats simple symbols. Use this skill whenever the user needs layered icons, complex line patterns, data-driven primitive overrides, or precise cartographic symbols.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- GeoDaoyu/arcgis-maps-sdk-js-ai-contexttheir own version, first seen Nov 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- GeoDaoyu/arcgis-maps-sdk-js-ai-context★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository73 other files it gives its agents.
- skills/arcgis-3d-layers/AGENTS.mdAGENTS.md
- skills/arcgis-advanced-layers/AGENTS.mdAGENTS.md
- skills/arcgis-ai-components/AGENTS.mdAGENTS.md
- skills/arcgis-arcade/AGENTS.mdAGENTS.md
- skills/arcgis-authentication/AGENTS.mdAGENTS.md
- skills/arcgis-charts/AGENTS.mdAGENTS.md
- skills/arcgis-cim-symbols/AGENTS.mdAGENTS.md
- skills/arcgis-coding-components/AGENTS.mdAGENTS.md
- skills/arcgis-coordinates-projection/AGENTS.mdAGENTS.md
- skills/arcgis-core-maps/AGENTS.mdAGENTS.md
- skills/arcgis-core-utilities/AGENTS.mdAGENTS.md
- skills/arcgis-custom-rendering/AGENTS.mdAGENTS.md
- skills/arcgis-editing/AGENTS.mdAGENTS.md
- skills/arcgis-embeddable-maps/AGENTS.mdAGENTS.md
- skills/arcgis-feature-effects/AGENTS.mdAGENTS.md
- skills/arcgis-geometry-operations/AGENTS.mdAGENTS.md
- skills/arcgis-imagery/AGENTS.mdAGENTS.md
- skills/arcgis-interaction/AGENTS.mdAGENTS.md
- skills/arcgis-knowledge-graphs/AGENTS.mdAGENTS.md
- skills/arcgis-layers/AGENTS.mdAGENTS.md
- skills/arcgis-map-tools/AGENTS.mdAGENTS.md
- skills/arcgis-parquet/AGENTS.mdAGENTS.md
- skills/arcgis-performance/AGENTS.mdAGENTS.md
- skills/arcgis-popup-templates/AGENTS.mdAGENTS.md
- skills/arcgis-portal-content/AGENTS.mdAGENTS.md
- skills/arcgis-rest-services/AGENTS.mdAGENTS.md
- skills/arcgis-scene-environment/AGENTS.mdAGENTS.md
- skills/arcgis-smart-mapping/AGENTS.mdAGENTS.md
- skills/arcgis-spatial-analysis/AGENTS.mdAGENTS.md
- skills/arcgis-starter-app/AGENTS.mdAGENTS.md
- skills/arcgis-tables-forms/AGENTS.mdAGENTS.md
- skills/arcgis-time-animation/AGENTS.mdAGENTS.md
- skills/arcgis-utility-networks/AGENTS.mdAGENTS.md
- skills/arcgis-visualization/AGENTS.mdAGENTS.md
- skills/arcgis-widgets-advanced/AGENTS.mdAGENTS.md
- skills/arcgis-widgets-ui/AGENTS.mdAGENTS.md
- skills/hello-world/AGENTS.mdAGENTS.md
- arcgis-3d-layersSkill
- arcgis-advanced-layersSkill
- arcgis-ai-componentsSkill
- arcgis-arcadeSkill
- arcgis-authenticationSkill
- arcgis-chartsSkill
- 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-parquetSkill
- arcgis-performanceSkill
- arcgis-popup-templatesSkill
- The first 60 shown.
The file
Files
CIM Symbols
When to use: Activate this skill whenever simple symbols are not enough — layered icons, complex line patterns, or precise cartographic symbology.
Overview
A CIMSymbol wraps Esri's Cartographic Information Model JSON, letting you stack symbol layers.
- Problem it solves: symbology that simple marker/line/fill symbols cannot express.
- Who it serves: cartographers and developers needing layered or pattern symbols.
- Pattern it teaches: the CIMSymbolReference → symbol → symbolLayers hierarchy.
- What it does NOT cover: basic renderers (see
arcgis-visualization) or auto symbology (arcgis-smart-mapping).
Quick Start
import CIMSymbol from "@arcgis/core/symbols/CIMSymbol.js";
// A red 16×16 square drawn at 20 pt (≈27 px). An empty symbolLayers draws nothing.
const symbol = new CIMSymbol({
data: {
type: "CIMSymbolReference",
symbol: {
type: "CIMPointSymbol",
symbolLayers: [{
type: "CIMVectorMarker",
enable: true,
size: 20,
frame: { xmin: 0, ymin: 0, xmax: 16, ymax: 16 },
markerGraphics: [{
type: "CIMMarkerGraphic",
geometry: { rings: [[[0, 0], [16, 0], [16, 16], [0, 16], [0, 0]]] },
symbol: {
type: "CIMPolygonSymbol",
symbolLayers: [{ type: "CIMSolidFill", enable: true, color: [255, 0, 0, 255] }],
},
}],
}],
},
},
});Decision Tree
- Can a SimpleMarker/Line/Fill express it?
- Yes → use the simple symbol (cheaper, simpler).
- No → continue.
- Need stacked layers, vector markers, or dashes/patterns?
- Yes →
CIMSymbolwith multiplesymbolLayers.
- Yes →
- Need the symbol to react to data primitives?
- Yes → use CIM primitive overrides.
Default: simple symbols first; reach for CIM only when layering is required.
Import Patterns
Direct ESM (recommended for npm/Vite/Webpack)
import CIMSymbol from "@arcgis/core/symbols/CIMSymbol.js";Dynamic Imports (CDN)
const CIMSymbol = await $arcgis.import("@arcgis/core/symbols/CIMSymbol.js");Map Components (recommended for new projects)
// Use the CIMSymbol in a renderer assigned to a layer on the component map.
import "@arcgis/map-components/components/arcgis-map";Key Concepts
Concept 1: The CIM hierarchy
data is a CIMSymbolReference whose symbol is a CIMPointSymbol / CIMLineSymbol /
CIMPolygonSymbol. Each holds symbolLayers; the first layer in the array draws on top
(CIM order, as in ArcGIS Pro's layer list).
Concept 2: Vector markers: size in points, geometry in frame units
A CIMVectorMarker maps its frame to size, and size is in points: measured with 5.1.27,
size: 20 paints 27 px and size: 40 paints 54 px (1 pt = 1.33 px). The geometry of each
markerGraphic is in frame units, and the frame does not clip: a ring that goes to 100 in a
0..16 frame paints a 120 px marker instead of 27 px.
Concept 3: Primitive overrides
Give a symbol layer a primitiveName, then add primitiveOverrides to the
CIMSymbolReference: each one sets a propertyName of that primitive from an Arcade
valueExpressionInfo. propertyName is Proper case ("Size", "Color", "TextString");
a lowercase "size" is ignored without a warning (measured: both features stay at the base size).
Concept 4: Helpers instead of editing JSON by hand
cimSymbolUtils reads and changes a built symbol: getCIMSymbolSize/scaleCIMSymbolTo,
getCIMSymbolColor/applyCIMSymbolColor, getCIMSymbolRotation/applyCIMSymbolRotation.
symbolUtils.renderPreviewHTML(symbol) draws a preview, the quickest way to see if a CIM JSON
paints anything. New in 5.1 (beta): CIMSymbolAnimationMoveAlongLine (a marker moving along a
line) and CIMMarkerPlacementAtMeasuredUnits. Animations do not run in a SceneView or in the
legend.
Common Pitfalls (Top 3)
Pitfall 1: Wrong top-level type
// ❌ Anti-pattern
new CIMSymbol({ data: { type: "CIMPointSymbol", symbolLayers: [] } as any });// ✅ Correct
new CIMSymbol({ data: { type: "CIMSymbolReference", symbol: { type: "CIMPointSymbol", symbolLayers: [] } } });Impact: measured with 5.1.27: no error when it is built; the preview throws "Cannot read
properties of null" and nothing is drawn. TypeScript catches it only without the as any.
Pitfall 2: Alpha on a 0–1 scale
// ❌ Anti-pattern
color: [255, 0, 0, 1]; // alpha here is 0-255, not 0-1// ✅ Correct
color: [255, 0, 0, 255]; // fully opaqueImpact: measured: alpha 1 paints with an alpha of 1/255, an invisible symbol. CIM colors
are not Color objects, where alpha is 0–1.
Pitfall 3: Lowercase propertyName in an override
// ❌ Anti-pattern
primitiveOverrides: [{ type: "CIMPrimitiveOverride", primitiveName: "m", propertyName: "size",
valueExpressionInfo: { type: "CIMExpressionInfo", title: "s", expression: "$feature.s", returnType: "Default" } }];// ✅ Correct
primitiveOverrides: [{ type: "CIMPrimitiveOverride", primitiveName: "m", propertyName: "Size",
valueExpressionInfo: { type: "CIMExpressionInfo", title: "s", expression: "$feature.s", returnType: "Default" } }];Impact: measured on a MapView: with "Size" the features at s=8 and s=40 paint 132 and 2970
px; with "size" both stay at the base size (210 and 196 px), no warning.
When to Read references/
| If you need... | Read |
| CIM structure reference | references/api-detail.md |
| Full CIM symbol examples | references/examples.md |
| More pitfalls (5+ extended) | references/pitfalls.md |
Related Skills
arcgis-visualization— renderers that use the symbolarcgis-arcade— expressions for primitive overridesarcgis-layers— the layer being symbolized
Reference Samples
Changelog
- 0.2.0 (2026-10-27): SDK 5.1. The Quick Start drew nothing (empty
symbolLayers); the "forgetenable: trueand it is not drawn" pitfall was false (measured: an omittedenabledraws, onlyfalsehides); geometry outside the frame does not clip, it inflates the marker;sizeis in points; layer order is first on top; primitive overrides with a real example and the Proper-casepropertyNametrap;cimSymbolUtils; the 5.1 animation and placement. Run intests/runtime/casos/arcgis-cim-symbols.ts. - 0.1.0 (2026-05-31): Initial release.
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.

