mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 15:05:50 +00:00
Version 4.6.1: Removed obsolete MapProjection.TranslateLocation method
This commit is contained in:
parent
fa2c561bc9
commit
b12155e498
15 changed files with 19 additions and 73 deletions
|
|
@ -57,16 +57,6 @@ namespace MapControl
|
|||
point.X / TrueScale);
|
||||
}
|
||||
|
||||
public override Location TranslateLocation(Location location, Point translation)
|
||||
{
|
||||
var scaleX = TrueScale * ViewportScale;
|
||||
var scaleY = scaleX / Math.Cos(location.Latitude * Math.PI / 180d);
|
||||
|
||||
return new Location(
|
||||
location.Latitude - translation.Y / scaleY,
|
||||
location.Longitude + translation.X / scaleX);
|
||||
}
|
||||
|
||||
public static double LatitudeToY(double latitude)
|
||||
{
|
||||
if (latitude <= -90d)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue