mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update MapPolypoint.Avalonia.cs
This commit is contained in:
parent
b573bafb48
commit
5b9ad68c57
|
|
@ -61,6 +61,11 @@ namespace MapControl
|
|||
AddPolylinePoints(pathFigures, locations, longitudeOffset, closed);
|
||||
}
|
||||
|
||||
SetPathFigures(pathFigures);
|
||||
}
|
||||
|
||||
protected void SetPathFigures(PathFigures pathFigures)
|
||||
{
|
||||
if (pathFigures.Count == 0)
|
||||
{
|
||||
// Avalonia Shape seems to ignore PathGeometry with empty Figures collection
|
||||
|
|
@ -69,7 +74,6 @@ namespace MapControl
|
|||
}
|
||||
|
||||
((PathGeometry)Data).Figures = pathFigures;
|
||||
|
||||
InvalidateGeometry();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue