arcgis-visualization
Skill1 starsChanged 6 months agoMITView on GitHub
Symbolize layers with renderers in the ArcGIS Maps SDK for JavaScript 5.1: SimpleRenderer, UniqueValueRenderer, ClassBreaksRenderer, HeatmapRenderer, and DotDensityRenderer, plus visual variables (color, size, opacity, rotation). Covers what silently draws nothing: values with no class and no defaultSymbol, unique values that differ in case, a heatmap on polygons, and graphic.symbol on FeatureLayer features (the renderer wins). Use this skill whenever the user styles a layer, applies a renderer, builds a thematic map, or drives symbology from data attributes.
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-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-parquetSkill
- arcgis-performanceSkill
- The first 60 shown.
The file
Files
Visualization
When to use: Activate this skill whenever the user styles a layer, applies a renderer, builds a thematic map, or drives color/size from attributes.
Overview
A renderer decides how a layer's features are drawn. Pick the renderer by the story your data tells.
- Problem it solves: turning raw features into a readable thematic map.
- Who it serves: developers building category, graduated, density, or data-driven maps.
- Pattern it teaches: renderer-by-intent, a
defaultSymbolfor everything the classes miss, and visual variables for continuous data. - What it does NOT cover: auto-generating renderers (see
arcgis-smart-mapping) or CIM symbols (arcgis-cim-symbols).
Quick Start
import FeatureLayer from "@arcgis/core/layers/FeatureLayer.js";
import UniqueValueRenderer from "@arcgis/core/renderers/UniqueValueRenderer.js";
import SimpleFillSymbol from "@arcgis/core/symbols/SimpleFillSymbol.js";
const states = new FeatureLayer({
url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/2",
renderer: new UniqueValueRenderer({
field: "sub_region",
uniqueValueInfos: [
{ value: "Pacific", symbol: new SimpleFillSymbol({ color: "#2b8cbe" }) },
{ value: "Mtn", symbol: new SimpleFillSymbol({ color: "#a6bddb" }) },
],
defaultSymbol: new SimpleFillSymbol({ color: "#d9d9d9" }), // without it, the other states are not drawn
}),
});Decision Tree
- What story does the data tell?
- One symbol for all →
SimpleRenderer. - Categories →
UniqueValueRenderer. - Numeric ranges →
ClassBreaksRenderer. - Point density →
HeatmapRenderer(points only). - Counts or proportions in areas →
DotDensityRenderer.
- One symbol for all →
- Continuous numeric attribute?
- Yes → add
visualVariables(color, size) on aSimpleRenderer.
- Yes → add
- Can any value fall outside the classes, or be null?
- Yes → set
defaultSymbol, or those features are not drawn.
- Yes → set
Default: UniqueValueRenderer for categories, visual variables for continuous values, always with defaultSymbol.
Import Patterns
Direct ESM (recommended for npm/Vite/Webpack)
import ClassBreaksRenderer from "@arcgis/core/renderers/ClassBreaksRenderer.js";Dynamic Imports (CDN)
const HeatmapRenderer = await $arcgis.import("@arcgis/core/renderers/HeatmapRenderer.js");Map Components (recommended for new projects)
// Build the renderer with the Core API, then assign it to a layer added to the component map.
import "@arcgis/map-components/components/arcgis-map";Key Concepts
Concept 1: Renderer types
SimpleRenderer (uniform), UniqueValueRenderer (categories via field + uniqueValueInfos),
ClassBreaksRenderer (numeric classBreakInfos), HeatmapRenderer (point density), DotDensityRenderer.
Concept 2: What has no class is not drawn
Measured on 5.1.27 by reading back the drawn pixels: a value in a gap between breaks, above the last break, or null
was not drawn at all when the renderer had no defaultSymbol; with one, it was drawn in that symbol. On a shared
boundary (maxValue 100 and minValue 100), the value 100 went to the lower class.
Concept 3: Visual variables
visualVariables map a field to color, size, opacity, or rotation via stops, over a base symbol. Stop order
does not matter: measured, reversed stops gave the same colors as sorted ones.
Common Pitfalls (Top 3)
Pitfall 1: Setting graphic.symbol on FeatureLayer features
// ❌ Anti-pattern: ignored on a FeatureLayer
const { features } = await layer.queryFeatures();
features.forEach((f) => (f.symbol = makeSymbol(f.attributes.TYPE)));// ✅ Correct
layer.renderer = new UniqueValueRenderer({ field: "TYPE", uniqueValueInfos, defaultSymbol });Impact: measured: a client-side FeatureLayer whose source graphic had a red symbol drew it in the renderer's
blue. graphic.symbol only applies in a GraphicsLayer or view.graphics.
Pitfall 2: Values that no class covers, with no defaultSymbol
// ❌ Anti-pattern
new ClassBreaksRenderer({ field: "v", classBreakInfos: [{ minValue: 0, maxValue: 100, symbol }, { minValue: 200, maxValue: 300, symbol }] });// ✅ Correct
new ClassBreaksRenderer({
field: "v",
classBreakInfos: [{ minValue: 0, maxValue: 100, symbol }, { minValue: 100, maxValue: 300, symbol }],
defaultSymbol, // values above 300, below 0, or null
});Impact: measured: a feature with 150 (in the gap), 500 (out of range), or null was not drawn, with no warning.
Pitfall 3: A heatmap on a polygon layer
// ❌ Anti-pattern
statesLayer.renderer = new HeatmapRenderer({ radius: 18 });// ✅ Correct
pointLayer.renderer = new HeatmapRenderer({ radius: 18, colorStops });Impact: measured on the USA states service: the layer view was created, the renderer stayed heatmap, no error
was raised; on a client-side polygon, the
heatmap drew nothing.
When to Read references/
| If you need... | Read |
| Renderer + visualVariable signatures | references/api-detail.md |
| Renderer examples (each type) | references/examples.md |
| More pitfalls (5+ extended) | references/pitfalls.md |
Related Skills
arcgis-layers— the layer you symbolizearcgis-smart-mapping— auto-generate renderers from statisticsarcgis-cim-symbols— advanced multi-layer symbols
Reference Samples
Changelog
- 0.2.0 (2026-10-27): SDK 5.1. Runtime checks in
tests/runtime/casos/arcgis-visualization.ts, which read back the drawn pixels. Two extended pitfalls were false and are gone: the rendererfieldis matched case-insensitively ("type"drew like"TYPE"), and visual-variable stops are sorted for you. Replaced with what was measured: unique values are case-sensitive ("Park"fell to the default), values with no class or null are not drawn withoutdefaultSymbol, a shared boundary goes to the lower class,graphic.symbolis ignored in a FeatureLayer, and a heatmap on polygons draws nothing without an error. Removed the web map pitfall (its block failed TS2339) and the unmeasured heatmap scale one; the snippet's placeholder URL is now a public service. - 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.

