GeomSf
Simple-features geometry: already-projected GeoJSON Geometry JSON strings in a data column. Point/line/polygon families (incl. GeometryCollection of one family) with even-odd holes; use coord_sf for fixed-aspect (CRS reproject deferred).
Defaults
- geom
sf- default stat
sf- default position
identity- params type
SfParams
Svelte component
import { GGPlot, GeomSf } from "@ggsvelte/svelte";
<GGPlot data={rows} aes={{ x: "x", y: "y" }}>
<GeomSf />
</GGPlot> JSON layer
{
"geom": "sf",
"stat": "sf"
} Params
geometrystringName of the data column holding GeoJSON Geometry JSON strings. Default "geometry". Already-projected coordinates only.
alphanumberMark opacity. Must be between 0 and 1 (inclusive). Default 1.
linewidthnumberStroke width in px for lines/polygon outlines. Must be greater than 0.
sizenumberPoint radius in px when geometries are Point/MultiPoint.
fillPaintGradientPaintWithin-mark gradient fill paint (polygon family; not a data scale).
strokePaintGradientPaintWithin-mark gradient stroke paint (not a data scale).
glowGlowSpecBounded within-mark glow treatment (not theme decoration).
Allowed stats
sfdefault
Allowed positions
identitydefault