ChartMapCatalogEntry
ChartForgeX.Core
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, bool isEmbedded = false, bool isLarge = false, string? notes = null, string? license = null) #Initializes a new catalog entry.
Parameters
- id string
- name string
- geography string
- level string
- source string
- joinKey string
- sourceUrl string
- fileName string
- optionsFactory System.Func<ChartForgeX.Core.ChartMapGeoJsonOptions>? = null
- isEmbedded bool = false
- isLarge bool = false
- notes string? = null
- license string? = null
Methods
public ChartMapGeoJsonOptions CreateOptions() #Creates a fresh options instance for this entry.
public ChartMapDefinition FromAssetDirectory(string directory) #Creates a map definition from this entry's standard file name inside an asset directory.
Parameters
- directory string
- The directory containing catalog GeoJSON assets.
public ChartMapDefinition FromAssetDirectory(string directory, Action<ChartMapGeoJsonOptions>? configure) #Creates a map definition from this entry's standard file name inside an asset directory and caller-specific refinements.
Parameters
- directory string
- The directory containing catalog GeoJSON assets.
- configure System.Action<ChartForgeX.Core.ChartMapGeoJsonOptions>?
- Optional configuration applied to a fresh options instance.
public ChartMapDefinition FromGeoJson(string geoJson) #Creates a map definition from GeoJSON using this entry's recommended import options.
Parameters
- geoJson string
- The GeoJSON document.
public ChartMapDefinition FromGeoJson(string geoJson, Action<ChartMapGeoJsonOptions>? configure) #Creates a map definition from GeoJSON using this entry's recommended import options and caller-specific refinements.
Parameters
- geoJson string
- The GeoJSON document.
- configure System.Action<ChartForgeX.Core.ChartMapGeoJsonOptions>?
- Optional configuration applied to a fresh options instance.
public ChartMapDefinition FromGeoJsonFile(string path) #Creates a map definition from a GeoJSON file using this entry's recommended import options.
Parameters
- path string
- The GeoJSON file path.
public ChartMapDefinition FromGeoJsonFile(string path, Action<ChartMapGeoJsonOptions>? configure) #Creates a map definition from a GeoJSON file using this entry's recommended import options and caller-specific refinements.
Parameters
- path string
- The GeoJSON file path.
- configure System.Action<ChartForgeX.Core.ChartMapGeoJsonOptions>?
- Optional configuration applied to a fresh options instance.
Inherited Methods
Properties
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 bool IsEmbedded { get; } #Gets a value indicating whether the entry is embedded in the core package.
public bool 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 bool 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.
public string License { get; } #Gets the licence of the source geometry, or an empty string when the caller did not record one.