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
| Name | Description |
|---|---|
| GeoMark(IEnumerable<T>, Func<T, GeoGeometry?>) | Initializes a new instance of the GeoMark<T> class. |
GeoMark(IEnumerable<T>, Func<T, GeoGeometry?>)
GeoMark.csInitializes a new instance of the GeoMark<T> class.
public GeoMark(IEnumerable<T> data, Func<T, GeoGeometry?> geometry)Parameters
dataIEnumerable<T>- The rows.
geometryFunc<T, GeoGeometry?>- The channel of the geometry of a row, such as
GeoFeature.Geometry.
Properties
| Name | Description |
|---|---|
| Geometry | Gets the channel of the geometry of a row. |
| PointRadius | Gets or sets the radius of the dots of the points of the geometries, in pixels. The default is 3. |
Geometry
GeoMark.csGets the channel of the geometry of a row.
public Func<T, GeoGeometry?> Geometry { get; }