mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update AutoUtmProjection.cs
This commit is contained in:
parent
5a02ed9345
commit
e8a34b1a9f
|
|
@ -17,6 +17,8 @@ namespace MapControl.Projections
|
||||||
UpdateZone();
|
UpdateZone();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool UseZoneCrsId { get; set; }
|
||||||
|
|
||||||
public override Point LocationToMap(Location location)
|
public override Point LocationToMap(Location location)
|
||||||
{
|
{
|
||||||
UpdateZone();
|
UpdateZone();
|
||||||
|
|
@ -41,7 +43,11 @@ namespace MapControl.Projections
|
||||||
zoneIsNorth = north;
|
zoneIsNorth = north;
|
||||||
|
|
||||||
CoordinateSystem = ProjectedCoordinateSystem.WGS84_UTM(zoneNumber, zoneIsNorth);
|
CoordinateSystem = ProjectedCoordinateSystem.WGS84_UTM(zoneNumber, zoneIsNorth);
|
||||||
CrsId = "AUTO2:42001";
|
|
||||||
|
if (!UseZoneCrsId)
|
||||||
|
{
|
||||||
|
CrsId = "AUTO2:42001";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue