Skip to content
ChartForgeX
Struct

ChartMapConnector

ChartForgeX.Core

Namespace
ChartForgeX.Core
Assembly
ChartForgeX
Base
ValueType
Modifiers
sealed

Represents a connector line between two longitude/latitude positions on a map chart.

Inheritance

  • ValueType
  • ChartMapConnector

Usage

Explore 10 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 5

Constructors

ChartMapConnector 2 overloads
public ChartMapConnector(string label, double fromLongitude, double fromLatitude, double toLongitude, double toLatitude, ChartColor? color = null) #

Initializes a new instance of the ChartMapConnector struct.

Parameters

label string required
fromLongitude double required
fromLatitude double required
toLongitude double required
toLatitude double required
color ChartForgeX.Primitives.ChartColor? = null optional
public ChartMapConnector(string label, IEnumerable<ChartMapPoint> routePoints, ChartColor? color = null) #

Initializes a new instance of the ChartMapConnector struct with ordered longitude/latitude route points.

Parameters

label string required
routePoints System.Collections.Generic.IEnumerable<ChartForgeX.Core.ChartMapPoint> required
color ChartForgeX.Primitives.ChartColor? = null optional

Methods

public ChartMapConnector WithEndpointClearance(double? gap) #

Returns the same source route with opt-in endpoint-disk clipping of its native line and halo.

Parameters

gap double? required
Nonnegative finite additional gap in logical units, or null to restore legacy geometry.

Returns

ChartMapConnector A detached route retaining its complete source/feature facts.
public ChartMapConnector WithFeature(ChartMapFeature? feature) #

Returns the same route and paint with replacement immutable feature metadata.

Parameters

feature ChartForgeX.Core.ChartMapFeature? required
The snapshot, or null to clear it. No series observation ID is assigned.

Properties

public ChartMapFeature? Feature { get; } #

Gets optional immutable feature metadata, independent of series observation IDs.

public double? EndpointClearance { get; } #

Gets optional additional endpoint clearance in logical scene units. Null retains the legacy route geometry.

public IReadOnlyList<ChartMapPoint> RoutePoints { get; } #

Gets the optional ordered route points. When empty, renderers use the source and target coordinates as a simple connector.

Fields

public readonly string Label #

Gets the connector label.

public readonly double FromLongitude #

Gets the source longitude in degrees.

public readonly double FromLatitude #

Gets the source latitude in degrees.

public readonly double ToLongitude #

Gets the target longitude in degrees.

public readonly double ToLatitude #

Gets the target latitude in degrees.

public readonly ChartColor? Color #

Gets the optional connector color.