Skip to content
ChartForgeX
Struct

ChartMapRegion

ChartForgeX.Core

Namespace
ChartForgeX.Core
Assembly
ChartForgeX
Base
ValueType
Modifiers
sealed

Describes one drawable region inside a map definition.

Inheritance

  • ValueType
  • ChartMapRegion

Usage

Explore 3 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 2

Accepted by parameters 1

Constructors

public ChartMapRegion(string code, string name, string path, ChartPoint? label = null, IEnumerable<string>? aliases = null) #

Initializes a new instance of the ChartMapRegion struct.

Parameters

code string required
The canonical region code.
name string required
The display name for the region.
path string required
The SVG path data for the region.
label ChartForgeX.Primitives.ChartPoint? = null optional
An optional preferred label point.
aliases System.Collections.Generic.IEnumerable<string>? = null optional
Optional alternate codes or names.

Methods

public ChartMapRegion WithFeature(ChartMapFeature? feature) #

Returns the same region geometry with replacement immutable feature metadata. No observation ID is assigned.

Parameters

feature ChartForgeX.Core.ChartMapFeature? required
A snapshot, or null to clear it. Imported raw geometry is retained.

Returns

ChartMapRegion An independent region with unchanged paths, code, name and aliases.

Properties

public ChartMapFeature? Feature { get; } #

Gets optional immutable source feature metadata, independent of region observation identity.

public string? GeoJsonGeometry { get; } #

Gets the immutable original imported geometry JSON of a seam-aware polygon, or null for ordinary/manual geometry.

public IReadOnlyList<string> Aliases { get; } #

Gets alternate codes or names that should resolve to this region.

Fields

public readonly string Code #

Gets the canonical region code.

public readonly string Name #

Gets the display name for the region.

public readonly string Path #

Gets the SVG path data for the region in the definition coordinate space.

public readonly bool HasLabel #

Gets a value indicating whether the region has a preferred label point.

public readonly ChartPoint Label #

Gets the preferred label point in the definition coordinate space.