Replaced MapRect and Scale by Rect and Point

This commit is contained in:
ClemensFischer 2024-05-19 17:24:18 +02:00
parent dd62545b41
commit 7e18b6b984
32 changed files with 256 additions and 238 deletions

View file

@ -24,11 +24,11 @@ namespace MapControl
CrsId = DefaultCrsId;
}
public override Scale GetRelativeScale(Location location)
public override Point GetRelativeScale(Location location)
{
var k = 1d / Math.Cos(location.Latitude * Math.PI / 180d); // p.44 (7-3)
return new Scale(k, k);
return new Point(k, k);
}
public override Point? LocationToMap(Location location)