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