mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
MapProjection properties
This commit is contained in:
parent
9a26fdaefc
commit
e6b25c2f8d
7 changed files with 31 additions and 71 deletions
|
|
@ -17,26 +17,12 @@ namespace MapControl
|
|||
{
|
||||
public const string DefaultCrsId = "EPSG:3857";
|
||||
|
||||
private static readonly double maxLatitude = YToLatitude(180d);
|
||||
|
||||
public WebMercatorProjection()
|
||||
{
|
||||
CrsId = DefaultCrsId;
|
||||
}
|
||||
|
||||
public override bool IsNormalCylindrical
|
||||
{
|
||||
get { return true; }
|
||||
}
|
||||
|
||||
public override bool IsWebMercator
|
||||
{
|
||||
get { return true; }
|
||||
}
|
||||
|
||||
public override double MaxLatitude
|
||||
{
|
||||
get { return maxLatitude; }
|
||||
IsNormalCylindrical = true;
|
||||
IsWebMercator = true;
|
||||
MaxLatitude = YToLatitude(180d);
|
||||
}
|
||||
|
||||
public override Vector GetRelativeScale(Location location)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue