mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
Moved EquatorialRadius property to MapProjection
This commit is contained in:
parent
aaa69a3c03
commit
d71d6c6e01
14 changed files with 53 additions and 70 deletions
|
|
@ -37,15 +37,15 @@ namespace MapControl
|
|||
public override Point? LocationToMap(double latitude, double longitude)
|
||||
{
|
||||
return new Point(
|
||||
Wgs84MeterPerDegree * longitude,
|
||||
Wgs84MeterPerDegree * LatitudeToY(latitude));
|
||||
MeterPerDegree * longitude,
|
||||
MeterPerDegree * LatitudeToY(latitude));
|
||||
}
|
||||
|
||||
public override Location MapToLocation(double x, double y)
|
||||
{
|
||||
return new Location(
|
||||
YToLatitude(y / Wgs84MeterPerDegree),
|
||||
x / Wgs84MeterPerDegree);
|
||||
YToLatitude(y / MeterPerDegree),
|
||||
x / MeterPerDegree);
|
||||
}
|
||||
|
||||
public static double LatitudeToY(double latitude)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue