mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-07 07:25:21 +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
|
|
@ -29,11 +29,11 @@ namespace MapControl
|
|||
MaxLatitude = YToLatitude(180d);
|
||||
}
|
||||
|
||||
public override Point GetMapScale(Location location)
|
||||
public override Vector GetMapScale(Location location)
|
||||
{
|
||||
var scale = ViewportScale / Math.Cos(location.Latitude * Math.PI / 180d);
|
||||
|
||||
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