Version 5.0.1: Dropped MapProjection.UnitsPerDegree

This commit is contained in:
ClemensF 2020-04-02 18:06:39 +02:00
parent 2b41d298f4
commit 43c33c2564
12 changed files with 29 additions and 50 deletions

View file

@ -42,15 +42,15 @@ namespace MapControl
public override Point LocationToMap(Location location)
{
return new Point(
UnitsPerDegree * location.Longitude,
UnitsPerDegree * LatitudeToY(location.Latitude));
Wgs84MetersPerDegree * location.Longitude,
Wgs84MetersPerDegree * LatitudeToY(location.Latitude));
}
public override Location MapToLocation(Point point)
{
return new Location(
YToLatitude(point.Y / UnitsPerDegree),
point.X / UnitsPerDegree);
YToLatitude(point.Y / Wgs84MetersPerDegree),
point.X / Wgs84MetersPerDegree);
}
public static double LatitudeToY(double latitude)