mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
Renamed Wgs84MetersPerDegree
This commit is contained in:
parent
535161c5a3
commit
c998f19fe5
11 changed files with 32 additions and 32 deletions
|
|
@ -35,15 +35,15 @@ namespace MapControl
|
|||
public override Point LocationToMap(Location location)
|
||||
{
|
||||
return new Point(
|
||||
Wgs84MetersPerDegree * location.Longitude,
|
||||
Wgs84MetersPerDegree * LatitudeToY(location.Latitude));
|
||||
Wgs84MeterPerDegree * location.Longitude,
|
||||
Wgs84MeterPerDegree * LatitudeToY(location.Latitude));
|
||||
}
|
||||
|
||||
public override Location MapToLocation(Point point)
|
||||
{
|
||||
return new Location(
|
||||
YToLatitude(point.Y / Wgs84MetersPerDegree),
|
||||
point.X / Wgs84MetersPerDegree);
|
||||
YToLatitude(point.Y / Wgs84MeterPerDegree),
|
||||
point.X / Wgs84MeterPerDegree);
|
||||
}
|
||||
|
||||
public static double LatitudeToY(double latitude)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue