XAML-Map-Control/MapControl/Shared/Wgs84AutoTmProjection.cs
2026-01-10 00:31:27 +01:00

32 lines
744 B
C#

namespace MapControl
{
/// <summary>
/// WGS84 Auto Transverse Mercator Projection.
/// </summary>
public class Wgs84AutoTmProjection : TransverseMercatorProjection
{
public const string DefaultCrsId = "AUTO2:42002";
public Wgs84AutoTmProjection()
: this(DefaultCrsId)
{
// XAML needs parameterless constructor
}
public Wgs84AutoTmProjection(string crsId)
{
CrsId = crsId;
}
public override Location Center
{
get => base.Center;
protected internal set
{
base.Center = value;
CentralMeridian = value.Longitude;
}
}
}
}