GeoMark<T> Class

Draws a geometry per row on a map: its polygons are filled (a choropleth when the Mark<T>.Fill channel is mapped by the color scale), its lines are stroked and its points are dots. The plot uses GeoCoordinates by default when it has a geo mark.

public sealed class GeoMark<T> : Mark<T>

Type parameters

T
The type of the rows, such as GeoFeature.

Remarks

Without a fill, the polygons are light gray, a base map; a row whose fill value is missing is light gray too. The polygons are filled with the even-odd rule, so their holes stay empty whatever the order of their rings. The mark draws only in geographic coordinates. A GeoGeometryCollection draws each of its geometries.

Inheritance
Mark<T> GeoMark<T>

Constructors

NameDescription
GeoMark(IEnumerable<T>, Func<T, GeoGeometry?>)Initializes a new instance of the GeoMark<T> class.

GeoMark(IEnumerable<T>, Func<T, GeoGeometry?>)

GeoMark.cs

Initializes a new instance of the GeoMark<T> class.

public GeoMark(IEnumerable<T> data, Func<T, GeoGeometry?> geometry)

Parameters

data IEnumerable<T>
The rows.
geometry Func<T, GeoGeometry?>
The channel of the geometry of a row, such as GeoFeature.Geometry.

Properties

NameDescription
GeometryGets the channel of the geometry of a row.
PointRadiusGets or sets the radius of the dots of the points of the geometries, in pixels. The default is 3.

Geometry

GeoMark.cs

Gets the channel of the geometry of a row.

public Func<T, GeoGeometry?> Geometry { get; }

Property value

Func<T, GeoGeometry?>

PointRadius

GeoMark.cs

Gets or sets the radius of the dots of the points of the geometries, in pixels. The default is 3.

public double PointRadius { get; set; }

Property value

double