Update MapProjections

This commit is contained in:
ClemensFischer 2022-12-02 17:45:58 +01:00
parent 218a85316c
commit 1ccfbb28a4
5 changed files with 17 additions and 11 deletions

View file

@ -21,11 +21,11 @@ namespace MapControl.Projections
CoordinateSystem = ProjectedCoordinateSystem.WebMercator;
}
public override Vector GetRelativeScale(Location location)
public override Scale GetRelativeScale(Location location)
{
var k = 1d / Math.Cos(location.Latitude * Math.PI / 180d); // p.44 (7-3)
return new Vector(k, k);
return new Scale(k, k);
}
}
}