# ChartMapPoint

Represents one labeled longitude/latitude point in a map chart.

 Struct  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

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

**Base**

`ValueType`

**Modifiers**

sealed

Represents one labeled longitude/latitude point in a map chart.

## Inheritance

- ValueType
- ChartMapPoint

## Usage

 Explore 11 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

- Property [ChartMapConnector.RoutePoints](/api/chartforgex-core-chartmapconnector/#property-routepoints)
- Method [ChartMapGeoJson.ToMapPoints](/api/chartforgex-core-chartmapgeojson/#method-tomappoints-string-chartforgex-core-chartmapgeojsonoptions)
- Method [ChartMapPoint.WithColorValue](/api/chartforgex-core-chartmappoint/#method-withcolorvalue-nullable-system-double)
- Method [ChartMapPoint.WithFeature](/api/chartforgex-core-chartmappoint/#method-withfeature-chartforgex-core-chartmapfeature)
- Property [ChartSeries.MapPoints](/api/chartforgex-core-chartseries/#property-mappoints)

### Accepted by parameters 6

- Method [Chart.AddDottedMap](/api/chartforgex-core-chart/#method-adddottedmap-string-collections-generic-ienumerable-chartforgex-core-chartmappoint-nullable-chartforgex-primitives-chartcolor-nullable-chartforgex-core-chartseriesid) parameter `points`
- Method [Chart.AddMapConnector](/api/chartforgex-core-chart/#method-addmapconnector-string-collections-generic-ienumerable-chartforgex-core-chartmappoint-nullable-chartforgex-primitives-chartcolor) parameter `routePoints`
- Constructor [ChartMapConnector.ChartMapConnector](/api/chartforgex-core-chartmapconnector/#constructor-ctor-string-collections-generic-ienumerable-chartforgex-core-chartmappoint-nullable-chartforgex-primitives-chartcolor) parameter `routePoints`
- Method [ChartSeries.CreateDottedMap](/api/chartforgex-core-chartseries/#method-createdottedmap-chartforgex-core-chartseriesid-string-collections-generic-ienumerable-chartforgex-core-chartmappoint-nullable-chartforgex-primitives-chartcolor) parameter `points`
- Method [ChartSeries.ReplaceMapPoints](/api/chartforgex-core-chartseries/#method-replacemappoints-collections-generic-ienumerable-chartforgex-core-chartmappoint) parameter `values`
- Method [ChartSeries.UpdateMapPoint](/api/chartforgex-core-chartseries/#method-updatemappoint-int32-chartforgex-core-chartmappoint) parameter `value`

 Filter members   

    Show inherited   

 

## Constructors

 ChartMapPoint 2 overloads 

 `public ChartMapPoint(string label, double longitude, double latitude, ChartColor? color = null)` [#](#constructor-ctor-string-double-double-nullable-chartforgex-primitives-chartcolor) 

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

Initializes a new instance of the [ChartMapPoint](/api/chartforgex-core-chartmappoint/) struct.

Parameters

**label string required**

The point label.

**longitude double required**

The longitude in degrees, from -180 to 180.

**latitude double required**

The latitude in degrees, from -90 to 90.

**color ChartForgeX.Primitives.ChartColor? = null optional**

An optional point color.

 `public ChartMapPoint(string label, double longitude, double latitude, double weight, ChartColor? color = null)` [#](#constructor-ctor-string-double-double-double-nullable-chartforgex-primitives-chartcolor) 

[ChartMapPoint.cs:68](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapPoint.cs#L68)

Initializes a new instance of the [ChartMapPoint](/api/chartforgex-core-chartmappoint/) struct with a numeric point weight.

Parameters

**label string required**

The point label.

**longitude double required**

The longitude in degrees, from -180 to 180.

**latitude double required**

The latitude in degrees, from -90 to 90.

**weight double required**

The finite nonnegative weight associated with the point.

**color ChartForgeX.Primitives.ChartColor? = null optional**

An optional point color.

## Methods

 `public ChartMapPoint WithColorValue(double? value)` [#](#method-withcolorvalue-nullable-system-double) 

[ChartMapPoint.cs:89](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapPoint.cs#L89)

Returns a point with the same location, weight and explicit paint and a replacement independent color measurement.

Parameters

**value double? required**

A finite signed color measurement, or null to clear it.

Returns

 `ChartMapPoint` An independent point. Its weight is unchanged. 

 `public ChartMapPoint WithFeature(ChartMapFeature? feature)` [#](#method-withfeature-chartforgex-core-chartmapfeature) 

[ChartMapPoint.cs:93](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapPoint.cs#L93)

Returns a point retaining all source measurements with replacement feature metadata.

Parameters

**feature ChartForgeX.Core.ChartMapFeature? required**

The immutable snapshot, or null to clear it. No observation ID is assigned.

Returns

 `ChartMapPoint` 

## 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 double? ColorValue { get; }` [#](#property-colorvalue) 

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

Gets an independent numeric color measurement, or null for a missing color measurement. [ChartMapPoint.Weight](/api/chartforgex-core-chartmappoint/) remains the point weight.

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

[ChartMapPoint.cs:39](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapPoint.cs#L39)

Gets optional immutable feature metadata, independent of the observation ID.

## Fields

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

[ChartMapPoint.cs:13](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapPoint.cs#L13)

Gets the point label.

 `public readonly double Longitude` [#](#field-longitude) 

[ChartMapPoint.cs:18](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapPoint.cs#L18)

Gets the longitude in degrees.

 `public readonly double Latitude` [#](#field-latitude) 

[ChartMapPoint.cs:23](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapPoint.cs#L23)

Gets the latitude in degrees.

 `public readonly double? Weight` [#](#field-weight) 

[ChartMapPoint.cs:28](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapPoint.cs#L28)

Gets the optional finite nonnegative point weight, independently of its color measurement.

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

[ChartMapPoint.cs:33](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartMapPoint.cs#L33)

Gets the optional point color.

<!-- PowerForge markdown artifact sha256:366BF6D68E830CBDDBB37145C85929C6FCFE3775B2C699C312DA829C5251F841 -->
