GeomMap
Map geometry: join fortified region borders to value rows via aes.map_id and params.map. Renders closed filled paths per region.
Defaults
- geom
map- default stat
identity- default position
identity- params type
MapParams
Svelte component
import { GGPlot, GeomMap } from "@ggsvelte/svelte";
<GGPlot data={rows} aes={{ x: "x", y: "y" }}>
<GeomMap
map={/* … */}
/>
</GGPlot> JSON layer
{
"geom": "map",
"params": { "map": /* … */ }
} Params
maprequiredDataRefFortified map coordinates ({ values }, { columns }, or { name } against spec.datasets). Must include long+lat or x+y, plus a region id column.
mapIdstringJoin column name in the map data (matched to aes.map_id). Default: "region", then "id".
alphanumberRegion fill opacity. Must be between 0 and 1 (inclusive). Default 1.
linewidthnumberRegion outline stroke width in px. Must be greater than 0. Default 1.5.
fillPaintGradientPaintWithin-mark gradient fill paint (not a data scale).
strokePaintGradientPaintWithin-mark gradient stroke paint (not a data scale).
glowGlowSpecBounded within-mark glow treatment (not theme decoration).
Allowed stats
identitydefault
Allowed positions
identitydefault