Version 4.6.1: Removed obsolete MapProjection.TranslateLocation method

This commit is contained in:
ClemensFischer 2018-03-06 23:24:25 +01:00
parent fa2c561bc9
commit b12155e498
15 changed files with 19 additions and 73 deletions

View file

@ -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)