mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 15:05:50 +00:00
Version 4.16.0. Improved MapProjection.
This commit is contained in:
parent
60e0093785
commit
12566506f8
14 changed files with 136 additions and 121 deletions
|
|
@ -15,19 +15,19 @@ namespace MapControl
|
|||
/// </summary>
|
||||
public class WorldMercatorProjection : MapProjection
|
||||
{
|
||||
private static readonly double maxLatitude = YToLatitude(180d);
|
||||
|
||||
public static double ConvergenceTolerance = 1e-6;
|
||||
public static int MaxIterations = 10;
|
||||
|
||||
public WorldMercatorProjection()
|
||||
: this("EPSG:3395")
|
||||
{
|
||||
CrsId = "EPSG:3395";
|
||||
}
|
||||
|
||||
public WorldMercatorProjection(string crsId)
|
||||
public override double MaxLatitude
|
||||
{
|
||||
CrsId = crsId;
|
||||
IsNormalCylindrical = true;
|
||||
MaxLatitude = YToLatitude(180d);
|
||||
get { return maxLatitude; }
|
||||
}
|
||||
|
||||
public override Vector GetMapScale(Location location)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue