mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-01-12 11:40:15 +01:00
32 lines
744 B
C#
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;
|
|
}
|
|
}
|
|
}
|
|
}
|