ChartMapRegion
ChartForgeX.Core
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
- Property ChartMapDefinition.Regions
- Method ChartMapRegion.WithFeature
Accepted by parameters 1
- Constructor ChartMapDefinition.ChartMapDefinition
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
- The canonical region code.
- name string
- The display name for the region.
- path string
- The SVG path data for the region.
- label ChartForgeX.Primitives.ChartPoint? = null
- An optional preferred label point.
- aliases System.Collections.Generic.IEnumerable<string>? = null
- 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?
- A snapshot, or null to clear it. Imported raw geometry is retained.
Inherited Methods
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 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.