ChartMapDefinition
ChartForgeX.Core
Describes reusable map geometry that can be rendered with different map visual styles.
Inheritance
- object
- ChartMapDefinition
Usage
Explore 22 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 15
- Method ChartMapCatalog.All
- Method ChartMapCatalog.FromAssetDirectory
- Method ChartMapCatalog.FromGeoJson
- Method ChartMapCatalog.FromGeoJsonFile
- Method ChartMapCatalog.Get
- Method ChartMapCatalog.Load
- Method ChartMapCatalogEntry.FromAssetDirectory
- Method ChartMapCatalogEntry.FromGeoJson
- Method ChartMapCatalogEntry.FromGeoJsonFile
- Method ChartMapDefinition.FromGeoJson
- Method ChartMapDefinition.WithGeographicProjection
- Method ChartMapDefinition.WithPolygonViewport
- Method ChartMapGeoJson.ToMapDefinition
- Property ChartMapLayer.Definition
- Property ChartSeries.RegionMapDefinition
Accepted by parameters 7
- Method Chart.AddMapBaseLayer
- Method Chart.AddMapBoundaryLayer
- Method Chart.AddRegionHeatmap
- Method Chart.AddRegionMap
- Method ChartMapCatalog.TryGet
- Constructor ChartMapLayer.ChartMapLayer
- Method ChartSeries.CreateRegionMap
Constructors
public ChartMapDefinition(string id, string name, double width, double height, IEnumerable<ChartMapRegion> regions) #Initializes a new instance of the ChartMapDefinition class with bounds starting at zero.
Parameters
- id string
- The stable map identifier.
- name string
- The display name.
- width double
- The map coordinate width.
- height double
- The map coordinate height.
- regions System.Collections.Generic.IEnumerable<ChartForgeX.Core.ChartMapRegion>
- The drawable regions.
public ChartMapDefinition(string id, string name, ChartRect bounds, IEnumerable<ChartMapRegion> regions) #Initializes a new instance of the ChartMapDefinition class.
Parameters
- id string
- The stable map identifier.
- name string
- The display name.
- bounds ChartForgeX.Primitives.ChartRect
- The coordinate bounds occupied by the map paths.
- regions System.Collections.Generic.IEnumerable<ChartForgeX.Core.ChartMapRegion>
- The drawable regions.
Methods
public static ChartMapDefinition FromGeoJson(string id, string name, string geoJson, ChartMapGeoJsonOptions? options = null) #Creates a map definition from a GeoJSON FeatureCollection or Feature.
Parameters
- id string
- The stable map identifier.
- name string
- The display name.
- geoJson string
- The GeoJSON document.
- options ChartForgeX.Core.ChartMapGeoJsonOptions? = null
- Optional import settings.
public bool TryResolveRegion(string region, out string code) #Resolves a caller-provided region code or alias to the canonical region code.
Parameters
- region string
- The code, name, or alias to resolve.
- code string
- The canonical region code.
Returns
bool true when the region can be resolved; otherwise false.public ChartMapDefinition WithGeographicProjection(ChartMapGeoJsonProjection projection) #Returns an independent definition declaring the geographic projection already used by its paths.
Parameters
- projection ChartForgeX.Core.ChartMapGeoJsonProjection
- The transform already applied to longitude/latitude positions. This declaration does not transform existing paths.
Returns
ChartMapDefinition A new immutable definition suitable for composition with geographic points, routes and equally projected geometry.public ChartMapDefinition WithPolygonViewport(ChartMapViewport viewport) #Returns a detached declaration of the antimeridian window already used to prepare the paths.
Parameters
- viewport ChartForgeX.Core.ChartMapViewport
- A seam-crossing window matching the declared projection.
Returns
ChartMapDefinition An independent definition. This method declares existing source geometry; it does not transform or clip paths.Inherited Methods
Properties
public ChartRect Bounds { get; } #Gets the coordinate bounds occupied by the map paths.
public ChartMapGeoJsonProjection? GeographicProjection { get; private set; } #Gets the geographic projection already applied to the paths, or null for arbitrary source coordinates.
public ChartMapViewport? PolygonViewport { get; private set; } #Gets the explicit antimeridian source-window declaration of already unwrapped polygon paths, or null for ordinary geometry.
public IReadOnlyList<ChartMapRegion> Regions { get; } #Gets the drawable regions.