ChartMapCatalog
ChartForgeX.Core
Provides generic access to built-in reusable map definitions.
Inheritance
- object
- ChartMapCatalog
Methods
public static IReadOnlyList<ChartMapDefinition> All() #Gets all built-in map definitions.
public static IReadOnlyList<ChartMapCatalogEntry> EmbeddedEntries() #Gets metadata for map definitions embedded in the core package.
public static IReadOnlyList<ChartMapCatalogEntry> Entries() #Gets metadata for built-in and known external map definitions.
public static IReadOnlyList<ChartMapCatalogEntry> ExternalEntries() #Gets metadata for known external map definitions that must be supplied by a host application or repository asset.
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
- The catalog entry ID.
- directory string
- The directory containing catalog GeoJSON assets.
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
- The catalog entry ID.
- directory string
- The directory containing catalog GeoJSON assets.
- configure System.Action<ChartForgeX.Core.ChartMapGeoJsonOptions>?
- Optional configuration applied to a fresh options instance.
public static ChartMapDefinition FromGeoJson(string id, string geoJson) #Loads a known external map definition from a GeoJSON document.
Parameters
- id string
- The catalog entry ID.
- geoJson string
- The GeoJSON document.
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
- The catalog entry ID.
- geoJson string
- The GeoJSON document.
- configure System.Action<ChartForgeX.Core.ChartMapGeoJsonOptions>?
- Optional configuration applied to a fresh options instance.
public static ChartMapDefinition FromGeoJsonFile(string id, string path) #Loads a known external map definition from a GeoJSON file.
Parameters
- id string
- The catalog entry ID.
- path string
- The local GeoJSON file path.
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
- The catalog entry ID.
- path string
- The local GeoJSON file path.
- configure System.Action<ChartForgeX.Core.ChartMapGeoJsonOptions>?
- Optional configuration applied to a fresh options instance.
public static ChartMapDefinition Get(string id) #Gets a built-in map definition by ID.
Parameters
- id string
- The map definition ID.
public static ChartMapCatalogEntry GetEntry(string id) #Gets metadata for a built-in or known external map definition.
Parameters
- id string
- The catalog entry ID.
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
- The catalog entry ID.
- assetDirectory string? = null
- The optional directory containing external catalog GeoJSON assets.
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
- The catalog entry ID.
- assetDirectory string?
- The optional directory containing external catalog GeoJSON assets.
- configure System.Action<ChartForgeX.Core.ChartMapGeoJsonOptions>?
- Optional configuration applied to external GeoJSON import options.
public static bool TryGet(string id, out ChartMapDefinition definition) #Attempts to get a built-in map definition by ID.
Parameters
- id string
- The map definition ID.
- definition ChartForgeX.Core.ChartMapDefinition
- 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
- The catalog entry ID.
- entry ChartForgeX.Core.ChartMapCatalogEntry
- The resolved catalog entry.
Returns
bool true when the entry exists; otherwise false.