mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-01-20 15:40:16 +01:00
26 lines
603 B
C#
26 lines
603 B
C#
namespace MapControl
|
|
{
|
|
/// <summary>
|
|
/// WGS84 Auto Transverse Mercator Projection.
|
|
/// </summary>
|
|
public class Wgs84AutoTmProjection : TransverseMercatorProjection
|
|
{
|
|
public const string DefaultCrsId = "AUTO2:42002";
|
|
|
|
public Wgs84AutoTmProjection() // parameterless constructor for XAML
|
|
: this(DefaultCrsId)
|
|
{
|
|
}
|
|
|
|
public Wgs84AutoTmProjection(string crsId)
|
|
{
|
|
CrsId = crsId;
|
|
}
|
|
|
|
protected override void CenterChanged()
|
|
{
|
|
CentralMeridian = Center.Longitude;
|
|
}
|
|
}
|
|
}
|