mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 06:55:04 +00:00
Version 4.7.0: Added UWP Vector class
This commit is contained in:
parent
32db0f22c1
commit
9c148e13c4
21 changed files with 154 additions and 93 deletions
|
|
@ -34,13 +34,13 @@ namespace MapControl
|
|||
MaxLatitude = YToLatitude(180d);
|
||||
}
|
||||
|
||||
public override Point GetMapScale(Location location)
|
||||
public override Vector GetMapScale(Location location)
|
||||
{
|
||||
var lat = location.Latitude * Math.PI / 180d;
|
||||
var eSinLat = Wgs84Eccentricity * Math.Sin(lat);
|
||||
var scale = ViewportScale * Math.Sqrt(1d - eSinLat * eSinLat) / Math.Cos(lat);
|
||||
|
||||
return new Point(scale, scale);
|
||||
return new Vector(scale, scale);
|
||||
}
|
||||
|
||||
public override Point LocationToPoint(Location location)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue