MapMetadata Class

The description of the map of a region: its name, its bounds, and the attribution of its data.

public sealed class MapMetadata

Constructors

NameDescription
MapMetadata(string)Initializes a new instance of the MapMetadata class.

MapMetadata(string)

MapMetadata.cs

Initializes a new instance of the MapMetadata class.

public MapMetadata(string region)

Parameters

region string
The name of the region in its catalog, such as World, Europe or Switzerland.

Exceptions

ArgumentException
region is empty.

Properties

NameDescription
AttributionGets the attribution the licenses of the data require, to show on the maps.
BoundsGets the bounds of the region: the box of its borders, which the other layers are cut to.
LastModifiedGets the date of the data of the map: the formats that store a date, such as GeoPackage, write it.
NameGets the name of the region to show, such as Switzerland, or null to use MapMetadata.Region.
RegionGets the name of the region in its catalog, such as World, Europe or Switzerland.
SourcesGets the sources of the data of the map, with their licenses.

Attribution

MapMetadata.cs

Gets the attribution the licenses of the data require, to show on the maps.

public string? Attribution { get; init; }

Property value

string?

Gets the bounds of the region: the box of its borders, which the other layers are cut to.

public GeoBounds? Bounds { get; init; }

Property value

GeoBounds?

LastModified

MapMetadata.cs

Gets 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

DateTimeOffset?

Gets the name of the region to show, such as Switzerland, or null to use MapMetadata.Region.

public string? Name { get; init; }

Property value

string?

Gets the name of the region in its catalog, such as World, Europe or Switzerland.

public string Region { get; }

Property value

string

Gets the sources of the data of the map, with their licenses.

public IReadOnlyList<MapSource> Sources { get; init; }