mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
Simplified MapProjection
This commit is contained in:
parent
eb046d97ad
commit
03ac94a002
6 changed files with 76 additions and 82 deletions
|
|
@ -3,7 +3,6 @@
|
|||
// Licensed under the Microsoft Public License (Ms-PL)
|
||||
|
||||
using System;
|
||||
using System.Globalization;
|
||||
#if WPF
|
||||
using System.Windows;
|
||||
#endif
|
||||
|
|
@ -51,20 +50,5 @@ namespace MapControl
|
|||
point.Y / Wgs84MeterPerDegree,
|
||||
point.X / Wgs84MeterPerDegree);
|
||||
}
|
||||
|
||||
public override string GetBboxValue(Rect rect)
|
||||
{
|
||||
if (CrsId == DefaultCrsId || CrsId == "CRS:84")
|
||||
{
|
||||
return string.Format(CultureInfo.InvariantCulture,
|
||||
CrsId == DefaultCrsId ? "{1:F8},{0:F8},{3:F8},{2:F8}" : "{0:F8},{1:F8},{2:F8},{3:F8}",
|
||||
rect.X / Wgs84MeterPerDegree,
|
||||
rect.Y / Wgs84MeterPerDegree,
|
||||
(rect.X + rect.Width) / Wgs84MeterPerDegree,
|
||||
(rect.Y + rect.Height) / Wgs84MeterPerDegree);
|
||||
}
|
||||
|
||||
return base.GetBboxValue(rect);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue