mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-09 00:14:51 +00:00
Removed MapProjection.MeterPerDegree
This commit is contained in:
parent
4ad9f2ea2a
commit
d790200cf1
4 changed files with 14 additions and 12 deletions
|
|
@ -35,12 +35,16 @@ namespace MapControl
|
|||
|
||||
public override Point LocationToMap(double latitude, double longitude)
|
||||
{
|
||||
return new Point(MeterPerDegree * longitude, MeterPerDegree * latitude);
|
||||
return new Point(
|
||||
EquatorialRadius * Math.PI / 180d * longitude,
|
||||
EquatorialRadius * Math.PI / 180d * latitude);
|
||||
}
|
||||
|
||||
public override Location MapToLocation(double x, double y)
|
||||
{
|
||||
return new Location(y / MeterPerDegree, x / MeterPerDegree);
|
||||
return new Location(
|
||||
y / EquatorialRadius * 180d / Math.PI,
|
||||
x / EquatorialRadius * 180d / Math.PI);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue