Version 4.16.0. Improved MapProjection.

This commit is contained in:
ClemensF 2019-12-12 19:23:41 +01:00
parent 60e0093785
commit 12566506f8
14 changed files with 136 additions and 121 deletions

View file

@ -15,17 +15,21 @@ namespace MapControl
/// </summary>
public class WebMercatorProjection : MapProjection
{
private static readonly double maxLatitude = YToLatitude(180d);
public WebMercatorProjection()
: this("EPSG:3857")
{
CrsId = "EPSG:3857";
}
public WebMercatorProjection(string crsId)
public override bool IsWebMercator
{
CrsId = crsId;
IsNormalCylindrical = true;
IsWebMercator = true;
MaxLatitude = YToLatitude(180d);
get { return true; }
}
public override double MaxLatitude
{
get { return maxLatitude; }
}
public override Vector GetMapScale(Location location)