Skip to content
ChartForgeX
Struct

ChartMapPoint

ChartForgeX.Core

Namespace
ChartForgeX.Core
Assembly
ChartForgeX
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.

Accepted by parameters 6

Constructors

ChartMapPoint 2 overloads
public ChartMapPoint(string label, double longitude, double latitude, ChartColor? color = null) #

Initializes a new instance of the 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) #

Initializes a new instance of the 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) #

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) #

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.

Properties

public double? ColorValue { get; } #

Gets an independent numeric color measurement, or null for a missing color measurement. ChartMapPoint.Weight remains the point weight.

public ChartMapFeature? Feature { get; } #

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

Fields

public readonly string Label #

Gets the point label.

public readonly double Longitude #

Gets the longitude in degrees.

public readonly double Latitude #

Gets the latitude in degrees.

public readonly double? Weight #

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

public readonly ChartColor? Color #

Gets the optional point color.