MapMetadata Class
The description of the map of a region: its name, its bounds, and the attribution of its data.
public sealed class MapMetadataConstructors
| Name | Description |
|---|---|
| MapMetadata(string) | Initializes a new instance of the MapMetadata class. |
MapMetadata(string)
MapMetadata.csInitializes a new instance of the MapMetadata class.
public MapMetadata(string region)Parameters
regionstring- The name of the region in its catalog, such as
World,EuropeorSwitzerland.
Exceptions
ArgumentExceptionregionis empty.
Properties
| Name | Description |
|---|---|
| Attribution | Gets the attribution the licenses of the data require, to show on the maps. |
| Bounds | Gets the bounds of the region: the box of its borders, which the other layers are cut to. |
| LastModified | Gets the date of the data of the map: the formats that store a date, such as GeoPackage, write it. |
| Name | Gets the name of the region to show, such as Switzerland, or null to use MapMetadata.Region. |
| Region | Gets the name of the region in its catalog, such as World, Europe or Switzerland. |
| Sources | Gets the sources of the data of the map, with their licenses. |
Attribution
MapMetadata.csBounds
MapMetadata.csGets the bounds of the region: the box of its borders, which the other layers are cut to.
public GeoBounds? Bounds { get; init; }Property value
LastModified
MapMetadata.csGets the date of the data of the map: the formats that store a date, such as GeoPackage, write it.
public DateTimeOffset? LastModified { get; init; }Property value
Name
MapMetadata.csGets the name of the region to show, such as Switzerland, or null to use MapMetadata.Region.
public string? Name { get; init; }Property value
Region
MapMetadata.csSources
MapMetadata.csGets the sources of the data of the map, with their licenses.
public IReadOnlyList<MapSource> Sources { get; init; }