mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Removed UseLayoutRounding handling from MapPanel
This commit is contained in:
parent
9cb4a9be7e
commit
93b58fa01e
7 changed files with 11 additions and 31 deletions
|
|
@ -106,8 +106,7 @@ namespace MapControl
|
|||
FrameworkElement overlay = new Image
|
||||
{
|
||||
Source = imageOverlay.ImageSource,
|
||||
Stretch = Stretch.Fill,
|
||||
UseLayoutRounding = false
|
||||
Stretch = Stretch.Fill
|
||||
};
|
||||
|
||||
if (imageOverlay.LatLonBox.Rotation != 0d)
|
||||
|
|
@ -115,9 +114,9 @@ namespace MapControl
|
|||
overlay.RenderTransform = new RotateTransform { Angle = -imageOverlay.LatLonBox.Rotation };
|
||||
overlay.RenderTransformOrigin = new Point(0.5, 0.5);
|
||||
|
||||
// Additional Panel for map rotation, see MapPanel.ArrangeElementWithBoundingBox.
|
||||
// Additional Panel for map rotation, see MapPanel.ArrangeElement(FrameworkElement, ViewRect).
|
||||
//
|
||||
var panel = new Grid { UseLayoutRounding = false };
|
||||
var panel = new Grid();
|
||||
panel.Children.Add(overlay);
|
||||
overlay = panel;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue