Skip to content
ChartForgeX
Class

ChartMapGeoJson

ChartForgeX.Core

Namespace
ChartForgeX.Core
Assembly
ChartForgeX
Modifiers
static

Creates map geometry and geographic observations from GeoJSON features.

Inheritance

  • object
  • ChartMapGeoJson

Methods

public static IReadOnlyList<ChartMapConnector> ToMapConnectors(string geoJson, ChartMapGeoJsonOptions? options = null) #

Imports LineString and MultiLineString features as ordered geographic route connectors.

Parameters

geoJson string required
A GeoJSON FeatureCollection or Feature.
options ChartForgeX.Core.ChartMapGeoJsonOptions? = null optional
Optional feature, name and bounds settings. Projection, point weights and precision do not alter route positions.

Returns

IReadOnlyList<ChartMapConnector> A detached read-only connector collection in feature and line order, including an empty collection when no feature matches.
public static ChartMapDefinition ToMapDefinition(string id, string name, string geoJson, ChartMapGeoJsonOptions? options = null) #

Creates a map definition from a GeoJSON FeatureCollection or Feature.

Parameters

id string required
The stable map identifier.
name string required
The display name.
geoJson string required
The GeoJSON document.
options ChartForgeX.Core.ChartMapGeoJsonOptions? = null optional
Optional import settings.

Returns

ChartMapDefinition A reusable map definition.
public static IReadOnlyList<ChartMapPoint> ToMapPoints(string geoJson, ChartMapGeoJsonOptions? options = null) #

Imports Point and MultiPoint features as geographic observations in feature and position order.

Parameters

geoJson string required
A GeoJSON FeatureCollection or Feature.
options ChartForgeX.Core.ChartMapGeoJsonOptions? = null optional
Optional feature, name, bounds and point-weight settings. Projection and coordinate precision do not change raw positions.

Returns

IReadOnlyList<ChartMapPoint> A detached read-only collection suitable for a dotted-map series, including an empty collection when no feature matches.