# ChartMapConnector

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

 Struct  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartMapConnector.cs:60](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapConnector.cs#L60)

**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.

### Returned or exposed by 5

- Method [ChartMapConnector.WithEndpointClearance](/api/chartforgex-core-chartmapconnector/#method-withendpointclearance-nullable-system-double)
- Method [ChartMapConnector.WithFeature](/api/chartforgex-core-chartmapconnector/#method-withfeature-chartforgex-core-chartmapfeature)
- Method [ChartMapGeoJson.ToMapConnectors](/api/chartforgex-core-chartmapgeojson/#method-tomapconnectors-string-chartforgex-core-chartmapgeojsonoptions)
- Property [ChartMapOptions.Connectors](/api/chartforgex-core-chartmapoptions/#property-connectors)
- Property [ChartSeries.MapConnectors](/api/chartforgex-core-chartseries/#property-mapconnectors)

### Accepted by parameters 5

- Extension method [ChartMapOptions.Connector](/api/chartforgex-core-chartmapoptions/#extension-connector-chartforgex-core-chartmapoptions-chartforgex-core-chartmapconnector) parameter `item`
- Extension method [ChartMapOptions.Connectors](/api/chartforgex-core-chartmapoptions/#extension-connectors-chartforgex-core-chartmapoptions-collections-generic-ienumerable-chartforgex-core-chartmapconnector) parameter `items`
- Method [ChartMapOptionsFluent.Connector](/api/chartforgex-core-chartmapoptionsfluent/#method-connector-chartforgex-core-chartmapoptions-chartforgex-core-chartmapconnector) parameter `item`
- Method [ChartMapOptionsFluent.Connectors](/api/chartforgex-core-chartmapoptionsfluent/#method-connectors-chartforgex-core-chartmapoptions-collections-generic-ienumerable-chartforgex-core-chartmapconnector) parameter `items`
- Method [ChartSeries.ReplaceMapConnectors](/api/chartforgex-core-chartseries/#method-replacemapconnectors-collections-generic-ienumerable-chartforgex-core-chartmapconnector) parameter `connectors`

 Filter members   

    Show inherited   

 

## Constructors

 ChartMapConnector 2 overloads 

 `public ChartMapConnector(string label, double fromLongitude, double fromLatitude, double toLongitude, double toLatitude, ChartColor? color = null)` [#](#constructor-ctor-string-double-double-double-double-nullable-chartforgex-primitives-chartcolor) 

[ChartMapConnector.cs:60](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapConnector.cs#L60)

Initializes a new instance of the [ChartMapConnector](/api/chartforgex-core-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)` [#](#constructor-ctor-string-collections-generic-ienumerable-chartforgex-core-chartmappoint-nullable-chartforgex-primitives-chartcolor) 

[ChartMapConnector.cs:77](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapConnector.cs#L77)

Initializes a new instance of the [ChartMapConnector](/api/chartforgex-core-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)` [#](#method-withendpointclearance-nullable-system-double) 

[ChartMapConnector.cs:105](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapConnector.cs#L105)

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)` [#](#method-withfeature-chartforgex-core-chartmapfeature) 

[ChartMapConnector.cs:99](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapConnector.cs#L99)

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.

Returns

 `ChartMapConnector` 

## Inherited Methods

 `public override bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from ValueType

Parameters

**obj object? required**

Returns

 `bool` 

 `public override int GetHashCode()` [#](#method-gethashcode) 

Inherited from ValueType

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public override string? ToString()` [#](#method-tostring) 

Inherited from ValueType

Returns

 `string?` 

## Properties

 `public ChartMapFeature? Feature { get; }` [#](#property-feature) 

[ChartMapConnector.cs:44](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapConnector.cs#L44)

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

 `public double? EndpointClearance { get; }` [#](#property-endpointclearance) 

[ChartMapConnector.cs:49](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapConnector.cs#L49)

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

 `public IReadOnlyList<ChartMapPoint> RoutePoints { get; }` [#](#property-routepoints) 

[ChartMapConnector.cs:54](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapConnector.cs#L54)

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

## Fields

 `public readonly string Label` [#](#field-label) 

[ChartMapConnector.cs:16](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapConnector.cs#L16)

Gets the connector label.

 `public readonly double FromLongitude` [#](#field-fromlongitude) 

[ChartMapConnector.cs:21](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapConnector.cs#L21)

Gets the source longitude in degrees.

 `public readonly double FromLatitude` [#](#field-fromlatitude) 

[ChartMapConnector.cs:26](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapConnector.cs#L26)

Gets the source latitude in degrees.

 `public readonly double ToLongitude` [#](#field-tolongitude) 

[ChartMapConnector.cs:31](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapConnector.cs#L31)

Gets the target longitude in degrees.

 `public readonly double ToLatitude` [#](#field-tolatitude) 

[ChartMapConnector.cs:36](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapConnector.cs#L36)

Gets the target latitude in degrees.

 `public readonly ChartColor? Color` [#](#field-color) 

[ChartMapConnector.cs:41](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapConnector.cs#L41)

Gets the optional connector color.

<!-- PowerForge markdown artifact sha256:90B94FA98CB14C96F6840BC16C9F271D020B07B0B648996CB3DA72F8FEFCAAD2 -->
