mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-07 23:45:05 +00:00
Version 5.0.1: Reworked MapBase and MapProjection
This commit is contained in:
parent
81ec8e7eb2
commit
2b41d298f4
4 changed files with 22 additions and 26 deletions
|
|
@ -14,7 +14,7 @@ namespace MapControl
|
|||
{
|
||||
/// <summary>
|
||||
/// Equirectangular Projection.
|
||||
/// Longitude and Latitude values are transformed linearly to X and Y in meters.
|
||||
/// Longitude and Latitude values are transformed linearly to X and Y values in meters.
|
||||
/// </summary>
|
||||
public class EquirectangularProjection : MapProjection
|
||||
{
|
||||
|
|
@ -47,7 +47,7 @@ namespace MapControl
|
|||
public override string GetBboxValue(Rect rect)
|
||||
{
|
||||
return string.Format(CultureInfo.InvariantCulture,
|
||||
CrsId != "CRS:84" ? "{1},{0},{3},{2}" : "{0},{1},{2},{3}",
|
||||
CrsId == "CRS:84" ? "{0},{1},{2},{3}" : "{1},{0},{3},{2}",
|
||||
rect.X / UnitsPerDegree, rect.Y / UnitsPerDegree,
|
||||
(rect.X + rect.Width) / UnitsPerDegree, (rect.Y + rect.Height) / UnitsPerDegree);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue