mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-09 00:14:51 +00:00
Fixed MapItem.MapTransform implementation
This commit is contained in:
parent
d7593cbe8c
commit
fd13503613
11 changed files with 229 additions and 127 deletions
|
|
@ -40,6 +40,9 @@ namespace MapControl
|
|||
set => SetValue(LocationProperty, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Implements IMapElement.ParentMap.
|
||||
/// </summary>
|
||||
public MapBase ParentMap
|
||||
{
|
||||
get => parentMap;
|
||||
|
|
@ -72,9 +75,7 @@ namespace MapControl
|
|||
|
||||
if (parentMap != null && Location != null && Data != null)
|
||||
{
|
||||
var scale = parentMap.GetScale(Location);
|
||||
var matrix = new Matrix(scale.X, 0d, 0d, scale.Y, 0d, 0d);
|
||||
matrix.Rotate(parentMap.ViewTransform.Rotation);
|
||||
var matrix = parentMap.GetMapTransform(Location);
|
||||
|
||||
if (Data.Transform is MatrixTransform transform)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue