mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Version 4.7.0: Added UWP Vector class
This commit is contained in:
parent
9c148e13c4
commit
5ae3f4083e
|
|
@ -182,6 +182,12 @@ namespace MapControl
|
|||
rect.X, rect.Y, (rect.X + rect.Width), (rect.Y + rect.Height), width, height);
|
||||
}
|
||||
|
||||
internal static Matrix CreateTransformMatrix(
|
||||
Point translation1, double scale, double rotation, Point translation2)
|
||||
{
|
||||
return CreateTransformMatrix(translation1, scale, scale, rotation, translation2);
|
||||
}
|
||||
|
||||
internal static Matrix CreateTransformMatrix(
|
||||
Point translation1, double scaleX, double scaleY, double rotation, Point translation2)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -311,7 +311,7 @@ namespace MapControl
|
|||
|
||||
var transform = new MatrixTransform
|
||||
{
|
||||
Matrix = MapProjection.CreateTransformMatrix(viewCenter, scale, scale, -parentMap.Heading, tileCenter)
|
||||
Matrix = MapProjection.CreateTransformMatrix(viewCenter, scale, -parentMap.Heading, tileCenter)
|
||||
};
|
||||
|
||||
var bounds = transform.TransformBounds(new Rect(0d, 0d, parentMap.RenderSize.Width, parentMap.RenderSize.Height));
|
||||
|
|
@ -332,7 +332,7 @@ namespace MapControl
|
|||
var viewCenter = new Point(parentMap.RenderSize.Width / 2d, parentMap.RenderSize.Height / 2d);
|
||||
|
||||
((MatrixTransform)RenderTransform).Matrix =
|
||||
MapProjection.CreateTransformMatrix(tileOrigin, scale, scale, parentMap.Heading, viewCenter);
|
||||
MapProjection.CreateTransformMatrix(tileOrigin, scale, parentMap.Heading, viewCenter);
|
||||
}
|
||||
|
||||
private void UpdateTiles()
|
||||
|
|
|
|||
Loading…
Reference in a new issue