mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-05-07 13:37:47 +00:00
Equirectangular projections
This commit is contained in:
parent
419e2dee16
commit
218071faea
4 changed files with 24 additions and 15 deletions
|
|
@ -24,6 +24,13 @@ namespace MapControl
|
|||
CrsId = crsId;
|
||||
}
|
||||
|
||||
public override Point GetRelativeScale(Location location)
|
||||
{
|
||||
return new Point(
|
||||
Math.Cos(Center.Latitude * Math.PI / 180d) / Math.Cos(location.Latitude * Math.PI / 180d),
|
||||
1d);
|
||||
}
|
||||
|
||||
public override Point? LocationToMap(Location location)
|
||||
{
|
||||
return new Point(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue