marker

A point on the earth, placed singly or one per row of a dataset.

On this page
A world map with markers at London, Tokyo and Sydney.A world map with markers at London, Tokyo and Sydney.

#Attributes

atImplicitAnimatable
The place, latitude first.
Can be written as shorthand: marker:value
lat
The @data column of latitudes, drawing one symbol per row.
lon
The @data column of longitudes.
Also written: lng
size
The symbol's size, or an expression giving one per reading from a numeric column.
marker-size-style
Default6
colour
The symbol's colour, or a map over a column or interval.
marker-colour-style
Also written: color
Defaultorange
opacity
How solid the symbols are.
marker-opacity-style
Default1
label
A label set above the marker, for the single form only.
hiddenAnimatable
Declared but not drawn.
Defaultfalse

#Allowed in

#Examples

A world map with a marker at London.A world map with a marker at London.
region:world{
    marker(at: 51.47, -0.46; label: London)
}
A world map with translucent red markers at twelve great earthquakes, each sized by magnitude, clustered around the Pacific.A world map with translucent red markers at twelve great earthquakes, each sized by magnitude, clustered around the Pacific.
region:world{
    marker(lat: #quakes.lat; lon: #quakes.lon; size: #quakes.magnitude -> 7..9.5 -> 4 + 12_; colour: red; opacity: 0.6)
}

Last updated