API Reference
ChartMapCatalog
Provides generic access to built-in reusable map definitions.
Inheritance
- Object
- ChartMapCatalog
Methods
EmbeddedEntries() #Gets metadata for map definitions embedded in the core package.
Returns
The embedded catalog entries.
Entries() #Gets metadata for built-in and known external map definitions.
Returns
The available catalog entries.
ExternalEntries() #Gets metadata for known external map definitions that must be supplied by a host application or repository asset.
Returns
The known external catalog entries.
FromAssetDirectory(System.String id, System.String directory) #Loads a known external map definition from a catalog asset directory using the entry's standard file name.
Parameters
- id System.String
- The catalog entry ID.
- directory System.String
- The directory containing catalog GeoJSON assets.
Returns
The loaded map definition.
FromAssetDirectory(System.String id, System.String directory, System.Action{ChartForgeX.Core.ChartMapGeoJsonOptions} configure) #Loads a known external map definition from a catalog asset directory with caller-specific import refinements.
Parameters
- id System.String
- The catalog entry ID.
- directory System.String
- The directory containing catalog GeoJSON assets.
- configure System.Action{ChartForgeX.Core.ChartMapGeoJsonOptions}
- Optional configuration applied to a fresh options instance.
Returns
The loaded map definition.
FromGeoJson(System.String id, System.String geoJson) #Loads a known external map definition from a GeoJSON document.
Parameters
- id System.String
- The catalog entry ID.
- geoJson System.String
- The GeoJSON document.
Returns
The loaded map definition.
FromGeoJson(System.String id, System.String geoJson, System.Action{ChartForgeX.Core.ChartMapGeoJsonOptions} configure) #Loads a known external map definition from a GeoJSON document with caller-specific import refinements.
Parameters
- id System.String
- The catalog entry ID.
- geoJson System.String
- The GeoJSON document.
- configure System.Action{ChartForgeX.Core.ChartMapGeoJsonOptions}
- Optional configuration applied to a fresh options instance.
Returns
The loaded map definition.
FromGeoJsonFile(System.String id, System.String path) #Loads a known external map definition from a GeoJSON file.
Parameters
- id System.String
- The catalog entry ID.
- path System.String
- The local GeoJSON file path.
Returns
The loaded map definition.
FromGeoJsonFile(System.String id, System.String path, System.Action{ChartForgeX.Core.ChartMapGeoJsonOptions} configure) #Loads a known external map definition from a GeoJSON file with caller-specific import refinements.
Parameters
- id System.String
- The catalog entry ID.
- path System.String
- The local GeoJSON file path.
- configure System.Action{ChartForgeX.Core.ChartMapGeoJsonOptions}
- Optional configuration applied to a fresh options instance.
Returns
The loaded map definition.
Get(System.String id) #Gets a built-in map definition by ID.
Parameters
- id System.String
- The map definition ID.
Returns
The requested map definition.
GetEntry(System.String id) #Gets metadata for a built-in or known external map definition.
Parameters
- id System.String
- The catalog entry ID.
Returns
The requested catalog entry.
Load(System.String id, System.String assetDirectory) #Loads a map definition by catalog ID, using embedded geometry when available or an asset directory for external entries.
Parameters
- id System.String
- The catalog entry ID.
- assetDirectory System.String
- The optional directory containing external catalog GeoJSON assets.
Returns
The loaded map definition.
Load(System.String id, System.String assetDirectory, System.Action{ChartForgeX.Core.ChartMapGeoJsonOptions} configure) #Loads a map definition by catalog ID, using embedded geometry when available or an asset directory for external entries.
Parameters
- id System.String
- The catalog entry ID.
- assetDirectory System.String
- The optional directory containing external catalog GeoJSON assets.
- configure System.Action{ChartForgeX.Core.ChartMapGeoJsonOptions}
- Optional configuration applied to external GeoJSON import options.
Returns
The loaded map definition.
TryGet(System.String id, ChartForgeX.Core.ChartMapDefinition@ definition) #Attempts to get a built-in map definition by ID.
Parameters
- id System.String
- The map definition ID.
- definition ChartForgeX.Core.ChartMapDefinition@
- The resolved map definition.
Returns
true when the definition exists; otherwise false.
TryGetEntry(System.String id, ChartForgeX.Core.ChartMapCatalogEntry@ entry) #Attempts to get metadata for a built-in or known external map definition.
Parameters
- id System.String
- The catalog entry ID.
- entry ChartForgeX.Core.ChartMapCatalogEntry@
- The resolved catalog entry.
Returns
true when the entry exists; otherwise false.