Skip to content
ChartForgeX
Class

ChartMapCatalog

ChartForgeX.Core

Namespace
ChartForgeX.Core
Assembly
ChartForgeX
Modifiers
static

Provides generic access to built-in reusable map definitions.

Inheritance

  • object
  • ChartMapCatalog

Methods

public static IReadOnlyList<ChartMapDefinition> All() #

Gets all built-in map definitions.

Returns

IReadOnlyList<ChartMapDefinition> The available map definitions.
public static IReadOnlyList<ChartMapCatalogEntry> EmbeddedEntries() #

Gets metadata for map definitions embedded in the core package.

Returns

IReadOnlyList<ChartMapCatalogEntry> The embedded catalog entries.
public static IReadOnlyList<ChartMapCatalogEntry> Entries() #

Gets metadata for built-in and known external map definitions.

Returns

IReadOnlyList<ChartMapCatalogEntry> The available catalog entries.
public static IReadOnlyList<ChartMapCatalogEntry> ExternalEntries() #

Gets metadata for known external map definitions that must be supplied by a host application or repository asset.

Returns

IReadOnlyList<ChartMapCatalogEntry> The known external catalog entries.
FromAssetDirectory 2 overloads
public static ChartMapDefinition FromAssetDirectory(string id, string directory) #

Loads a known external map definition from a catalog asset directory using the entry's standard file name.

Parameters

id string required
The catalog entry ID.
directory string required
The directory containing catalog GeoJSON assets.

Returns

ChartMapDefinition The loaded map definition.
public static ChartMapDefinition FromAssetDirectory(string id, string directory, Action<ChartMapGeoJsonOptions>? configure) #

Loads a known external map definition from a catalog asset directory with caller-specific import refinements.

Parameters

id string required
The catalog entry ID.
directory string required
The directory containing catalog GeoJSON assets.
configure System.Action<ChartForgeX.Core.ChartMapGeoJsonOptions>? required
Optional configuration applied to a fresh options instance.

Returns

ChartMapDefinition The loaded map definition.
FromGeoJson 2 overloads
public static ChartMapDefinition FromGeoJson(string id, string geoJson) #

Loads a known external map definition from a GeoJSON document.

Parameters

id string required
The catalog entry ID.
geoJson string required
The GeoJSON document.

Returns

ChartMapDefinition The loaded map definition.
public static ChartMapDefinition FromGeoJson(string id, string geoJson, Action<ChartMapGeoJsonOptions>? configure) #

Loads a known external map definition from a GeoJSON document with caller-specific import refinements.

Parameters

id string required
The catalog entry ID.
geoJson string required
The GeoJSON document.
configure System.Action<ChartForgeX.Core.ChartMapGeoJsonOptions>? required
Optional configuration applied to a fresh options instance.

Returns

ChartMapDefinition The loaded map definition.
FromGeoJsonFile 2 overloads
public static ChartMapDefinition FromGeoJsonFile(string id, string path) #

Loads a known external map definition from a GeoJSON file.

Parameters

id string required
The catalog entry ID.
path string required
The local GeoJSON file path.

Returns

ChartMapDefinition The loaded map definition.
public static ChartMapDefinition FromGeoJsonFile(string id, string path, Action<ChartMapGeoJsonOptions>? configure) #

Loads a known external map definition from a GeoJSON file with caller-specific import refinements.

Parameters

id string required
The catalog entry ID.
path string required
The local GeoJSON file path.
configure System.Action<ChartForgeX.Core.ChartMapGeoJsonOptions>? required
Optional configuration applied to a fresh options instance.

Returns

ChartMapDefinition The loaded map definition.
public static ChartMapDefinition Get(string id) #

Gets a built-in map definition by ID.

Parameters

id string required
The map definition ID.

Returns

ChartMapDefinition The requested map definition.
public static ChartMapCatalogEntry GetEntry(string id) #

Gets metadata for a built-in or known external map definition.

Parameters

id string required
The catalog entry ID.

Returns

ChartMapCatalogEntry The requested catalog entry.
Load 2 overloads
public static ChartMapDefinition Load(string id, string? assetDirectory = null) #

Loads a map definition by catalog ID, using embedded geometry when available or an asset directory for external entries.

Parameters

id string required
The catalog entry ID.
assetDirectory string? = null optional
The optional directory containing external catalog GeoJSON assets.

Returns

ChartMapDefinition The loaded map definition.
public static ChartMapDefinition Load(string id, string? assetDirectory, Action<ChartMapGeoJsonOptions>? configure) #

Loads a map definition by catalog ID, using embedded geometry when available or an asset directory for external entries.

Parameters

id string required
The catalog entry ID.
assetDirectory string? required
The optional directory containing external catalog GeoJSON assets.
configure System.Action<ChartForgeX.Core.ChartMapGeoJsonOptions>? required
Optional configuration applied to external GeoJSON import options.

Returns

ChartMapDefinition The loaded map definition.
public static bool TryGet(string id, out ChartMapDefinition definition) #

Attempts to get a built-in map definition by ID.

Parameters

id string required
The map definition ID.
definition ChartForgeX.Core.ChartMapDefinition required
The resolved map definition.

Returns

bool true when the definition exists; otherwise false.
public static bool TryGetEntry(string id, out ChartMapCatalogEntry entry) #

Attempts to get metadata for a built-in or known external map definition.

Parameters

id string required
The catalog entry ID.
entry ChartForgeX.Core.ChartMapCatalogEntry required
The resolved catalog entry.

Returns

bool true when the entry exists; otherwise false.