mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Update MapProjection and ViewTransform
This commit is contained in:
parent
2a9e112a20
commit
eee71e9190
12 changed files with 34 additions and 38 deletions
|
|
@ -94,7 +94,7 @@ namespace MapControl.Projections
|
|||
|
||||
public IMathTransform MapToLocationTransform { get; private set; }
|
||||
|
||||
public override Point GetRelativeScale(double latitude, double longitude)
|
||||
public override Point RelativeScale(double latitude, double longitude)
|
||||
{
|
||||
var k = CoordinateSystem?.Projection?.GetParameter("scale_factor")?.Value ?? 1d;
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ namespace MapControl.Projections
|
|||
CoordinateSystem = ProjectedCoordinateSystem.WebMercator;
|
||||
}
|
||||
|
||||
public override Point GetRelativeScale(double latitude, double longitude)
|
||||
public override Point RelativeScale(double latitude, double longitude)
|
||||
{
|
||||
var k = 1d / Math.Cos(latitude * Math.PI / 180d); // p.44 (7-3)
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ namespace MapControl.Projections
|
|||
+ "AUTHORITY[\"EPSG\",\"3395\"]]";
|
||||
}
|
||||
|
||||
public override Point GetRelativeScale(double latitude, double longitude)
|
||||
public override Point RelativeScale(double latitude, double longitude)
|
||||
{
|
||||
var lat = latitude * Math.PI / 180d;
|
||||
var eSinLat = Wgs84Eccentricity * Math.Sin(lat);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue