mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-05-07 13:37:47 +00:00
Renamed Wgs84MetersPerDegree
This commit is contained in:
parent
535161c5a3
commit
c998f19fe5
11 changed files with 32 additions and 32 deletions
|
|
@ -27,15 +27,15 @@ namespace MapControl
|
|||
public override Point LocationToMap(Location location)
|
||||
{
|
||||
return new Point(
|
||||
Wgs84MetersPerDegree * (location.Longitude - Center.Longitude) * Math.Cos(Center.Latitude * Math.PI / 180d),
|
||||
Wgs84MetersPerDegree * location.Latitude);
|
||||
Wgs84MeterPerDegree * (location.Longitude - Center.Longitude) * Math.Cos(Center.Latitude * Math.PI / 180d),
|
||||
Wgs84MeterPerDegree * location.Latitude);
|
||||
}
|
||||
|
||||
public override Location MapToLocation(Point point)
|
||||
{
|
||||
return new Location(
|
||||
point.Y / Wgs84MetersPerDegree,
|
||||
point.X / (Wgs84MetersPerDegree * Math.Cos(Center.Latitude * Math.PI / 180d)) + Center.Longitude);
|
||||
point.Y / Wgs84MeterPerDegree,
|
||||
point.X / (Wgs84MeterPerDegree * Math.Cos(Center.Latitude * Math.PI / 180d)) + Center.Longitude);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue