mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Minor changes to MapPath
This commit is contained in:
parent
ee985aa777
commit
f5d5e1d620
3 changed files with 27 additions and 16 deletions
|
|
@ -40,12 +40,23 @@ namespace MapControl
|
|||
}
|
||||
else
|
||||
{
|
||||
data.Transform = new MatrixTransform();
|
||||
path.UpdateData();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void SetMapTransform(Matrix matrix)
|
||||
{
|
||||
if (Data.Transform is MatrixTransform transform && !transform.IsFrozen)
|
||||
{
|
||||
transform.Matrix = matrix;
|
||||
}
|
||||
else
|
||||
{
|
||||
Data.Transform = new MatrixTransform(matrix);
|
||||
}
|
||||
}
|
||||
|
||||
#region Methods used only by derived classes MapPolyline, MapPolygon and MapMultiPolygon
|
||||
|
||||
protected void DataCollectionPropertyChanged(DependencyPropertyChangedEventArgs e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue