mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-04 14:08:32 +00:00
Simplified polyline implementations
This commit is contained in:
parent
641b4354a0
commit
b114243e61
4 changed files with 59 additions and 51 deletions
|
|
@ -48,18 +48,7 @@ namespace MapControl
|
|||
|
||||
protected override void UpdateData()
|
||||
{
|
||||
var pathFigures = ((PathGeometry)Data).Figures;
|
||||
pathFigures.Clear();
|
||||
|
||||
if (ParentMap != null && Polygons != null)
|
||||
{
|
||||
var longitudeOffset = GetLongitudeOffset(Location);
|
||||
|
||||
foreach (var polygon in Polygons)
|
||||
{
|
||||
AddPolylineLocations(pathFigures, polygon, longitudeOffset, true);
|
||||
}
|
||||
}
|
||||
((PathGeometry)Data).Figures = GetMultiPolygonFigures(Polygons);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue