mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 06:55:04 +00:00
Version 5.0.1: Dropped MapProjection.UnitsPerDegree
This commit is contained in:
parent
2b41d298f4
commit
43c33c2564
12 changed files with 29 additions and 50 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue