Region

regionNode

Boundary polygons from a built-in pack, the basemap stroke. region(in: world) draws every country in Natural Earth's 1:110m admin-0 layer, and the admin-1 packs (us-states, canada-provinces, australia-states) draw a country's own subdivisions; only: and except: narrow it by name or ISO alpha-3 code. Unset, land fills with the neutral tint and borders read as seams of the page's own ground; a fill: hue fills with that hue's tint, a stroke: hue strokes in the hue itself.

#Attributes

inRequiredImplicit
geo-pack
The boundary pack: world (Natural Earth 110m countries), us-states (the 50 states and DC), canada-provinces (provinces and territories), or australia-states (states and territories). Admin-1 packs join by region name or postal abbreviation (NSW, QC, TX).Can be written as shorthand: region:value
Keep only these regions — names or ISO alpha-3 codes, matched case-insensitively (France, DEU, Ivory Coast all read).
Drop these regions. except: Antarctica is the common world framing.
fill
colour
A hue; the land fills with its tint. Absent is the neutral land grey.
neutralredorangeyellowgreentealbluepurplepinkgreywhiteblack
stroke
colour
A hue for the borders. Absent, borders are seams of the page background.
neutralredorangeyellowgreentealbluepurplepinkgreywhiteblack
width
number
Border width in pixels.
Default1
opacity
number
0 to 1.
Default1
hidden
boolean
Declared but not drawn. Animatable.
Defaultfalse

#Allowed in

#Examples

region(in: world; except: Antarctica)
region(in: world; only: France, Germany, Italy; fill: teal)