API Reference
ChartMapCatalogEntry
Describes a reusable map catalog entry and how its GeoJSON should be imported.
Inheritance
- Object
- ChartMapCatalogEntry
Usage
Explore 5 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 4
- Method ChartMapCatalog.EmbeddedEntries
- Method ChartMapCatalog.Entries
- Method ChartMapCatalog.ExternalEntries
- Method ChartMapCatalog.GetEntry
Accepted by parameters 1
- Method ChartMapCatalog.TryGetEntry
Constructors
public ChartMapCatalogEntry(String id, String name, String geography, String level, String source, String joinKey, String sourceUrl, String fileName, Func<ChartMapGeoJsonOptions>? optionsFactory = null, Boolean isEmbedded = false, Boolean isLarge = false, String? notes = null) #Initializes a new catalog entry.
Parameters
- id System.String
- name System.String
- geography System.String
- level System.String
- source System.String
- joinKey System.String
- sourceUrl System.String
- fileName System.String
- optionsFactory System.Func<ChartForgeX.Core.ChartMapGeoJsonOptions>? = null
- isEmbedded System.Boolean = false
- isLarge System.Boolean = false
- notes System.String? = null
Methods
public ChartMapGeoJsonOptions CreateOptions() #ChartMapGeoJsonOptionsCreates a fresh options instance for this entry.
Returns
The recommended GeoJSON import options.
public ChartMapDefinition FromAssetDirectory(String directory) #ChartMapDefinitionCreates a map definition from this entry's standard file name inside an asset directory.
Parameters
- directory System.String
- The directory containing catalog GeoJSON assets.
Returns
The map definition.
public ChartMapDefinition FromAssetDirectory(String directory, Action<ChartMapGeoJsonOptions>? configure) #ChartMapDefinitionCreates a map definition from this entry's standard file name inside an asset directory and caller-specific refinements.
Parameters
- 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 map definition.
public ChartMapDefinition FromGeoJson(String geoJson) #ChartMapDefinitionCreates a map definition from GeoJSON using this entry's recommended import options.
Parameters
- geoJson System.String
- The GeoJSON document.
Returns
The map definition.
public ChartMapDefinition FromGeoJson(String geoJson, Action<ChartMapGeoJsonOptions>? configure) #ChartMapDefinitionCreates a map definition from GeoJSON using this entry's recommended import options and caller-specific refinements.
Parameters
- geoJson System.String
- The GeoJSON document.
- configure System.Action<ChartForgeX.Core.ChartMapGeoJsonOptions>?
- Optional configuration applied to a fresh options instance.
Returns
The map definition.
public ChartMapDefinition FromGeoJsonFile(String path) #ChartMapDefinitionCreates a map definition from a GeoJSON file using this entry's recommended import options.
Parameters
- path System.String
- The GeoJSON file path.
Returns
The map definition.
public ChartMapDefinition FromGeoJsonFile(String path, Action<ChartMapGeoJsonOptions>? configure) #ChartMapDefinitionCreates a map definition from a GeoJSON file using this entry's recommended import options and caller-specific refinements.
Parameters
- path System.String
- The GeoJSON file path.
- configure System.Action<ChartForgeX.Core.ChartMapGeoJsonOptions>?
- Optional configuration applied to a fresh options instance.
Returns
The map definition.
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
public String Id { get; } #Gets the stable catalog ID.
public String Name { get; } #Gets the display name.
public String Geography { get; } #Gets the covered geography, such as EU, US, or World.
public String Level { get; } #Gets the administrative or statistical level, such as NUTS3, state, county, or admin0.
public String Source { get; } #Gets the source authority or dataset family.
public String JoinKey { get; } #Gets the recommended join key used by metric data for this map.
public String SourceUrl { get; } #Gets the source URL or landing page for the geometry.
public String FileName { get; } #Gets the recommended local file name when this entry is stored as an external GeoJSON asset.
public Boolean IsEmbedded { get; } #Gets a value indicating whether the entry is embedded in the core package.
public Boolean IsExternal { get; } #Gets a value indicating whether the entry is a known external dataset that must be supplied by the host.
public ChartMapCatalogEntryKind Kind { get; } #Gets how the map catalog entry is made available to callers.
public Boolean IsLarge { get; } #Gets a value indicating whether the entry is normally too large to embed in the core package.
public String Notes { get; } #Gets the notes associated with the catalog entry.