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

map required

DataRef

Fortified map coordinates ({ values }, { columns }, or { name } against spec.datasets). Must include long+lat or x+y, plus a region id column.

mapId

string

Join column name in the map data (matched to aes.map_id). Default: "region", then "id".

alpha

number

Region fill opacity. Must be between 0 and 1 (inclusive). Default 1.

linewidth

number

Region outline stroke width in px. Must be greater than 0. Default 1.5.

fillPaint

GradientPaint

Within-mark gradient fill paint (not a data scale).

strokePaint

GradientPaint

Within-mark gradient stroke paint (not a data scale).

glow

GlowSpec

Bounded within-mark glow treatment (not theme decoration).

Allowed stats

Allowed positions

Examples

← All geoms · Getting started