mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-07 23:45:05 +00:00
Updated map projections
This commit is contained in:
parent
d6cdd5dc38
commit
5334bb4ea6
4 changed files with 35 additions and 54 deletions
|
|
@ -30,7 +30,7 @@ namespace MapControl
|
|||
|
||||
public override Point RelativeScale(double latitude, double longitude)
|
||||
{
|
||||
var k = ScaleFactor(latitude);
|
||||
var k = RelativeScale(latitude);
|
||||
|
||||
return new Point(k, k);
|
||||
}
|
||||
|
|
@ -49,7 +49,7 @@ namespace MapControl
|
|||
x / Wgs84MeterPerDegree);
|
||||
}
|
||||
|
||||
public static double ScaleFactor(double latitude)
|
||||
public static double RelativeScale(double latitude)
|
||||
{
|
||||
var phi = latitude * Math.PI / 180d;
|
||||
var eSinPhi = Wgs84Eccentricity * Math.Sin(phi);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue