mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Updated MapProjection
This commit is contained in:
parent
5d8f1b5ff0
commit
612a4048c0
2 changed files with 9 additions and 13 deletions
|
|
@ -286,18 +286,12 @@ namespace MapControl
|
|||
|
||||
private void ArrangeElement(FrameworkElement element, BoundingBox boundingBox)
|
||||
{
|
||||
Rect? mapRect = null;
|
||||
Rect? mapRect;
|
||||
var rotation = 0d;
|
||||
|
||||
if (boundingBox is LatLonBox latLonBox)
|
||||
{
|
||||
var rotatedRect = parentMap.MapProjection.LatLonBoxToMap(latLonBox);
|
||||
|
||||
if (rotatedRect.HasValue)
|
||||
{
|
||||
mapRect = rotatedRect.Value.Item1;
|
||||
rotation = -rotatedRect.Value.Item2;
|
||||
}
|
||||
(mapRect, rotation) = parentMap.MapProjection.LatLonBoxToMap(latLonBox);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue