mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Version 4.8.0: Improved WPF MapPolyline and MapPolygon accuracy.
This commit is contained in:
parent
5bc42d1f07
commit
0a7d0fccd2
|
|
@ -42,7 +42,7 @@ namespace MapControl
|
||||||
|
|
||||||
if (ParentMap != null)
|
if (ParentMap != null)
|
||||||
{
|
{
|
||||||
AddPolylineFigures(figures, Locations, true);
|
AddPolylineLocations(figures, Locations, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ namespace MapControl
|
||||||
|
|
||||||
if (ParentMap != null)
|
if (ParentMap != null)
|
||||||
{
|
{
|
||||||
AddPolylineFigures(figures, Locations, false);
|
AddPolylineLocations(figures, Locations, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ namespace MapControl
|
||||||
UpdateData();
|
UpdateData();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void AddPolylineFigures(PathFigureCollection figures, IEnumerable<Location> locations, bool closed)
|
protected void AddPolylineLocations(PathFigureCollection figures, IEnumerable<Location> locations, bool closed)
|
||||||
{
|
{
|
||||||
if (locations != null && locations.Count() >= 2)
|
if (locations != null && locations.Count() >= 2)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ namespace MapControl
|
||||||
{
|
{
|
||||||
foreach (var polygon in Polygons)
|
foreach (var polygon in Polygons)
|
||||||
{
|
{
|
||||||
AddPolylineFigures(figures, polygon, true);
|
AddPolylineLocations(figures, polygon, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ namespace MapControl
|
||||||
UpdateData();
|
UpdateData();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void AddPolylineFigures(PathFigureCollection figures, IEnumerable<Location> locations, bool closed)
|
protected void AddPolylineLocations(PathFigureCollection figures, IEnumerable<Location> locations, bool closed)
|
||||||
{
|
{
|
||||||
if (locations != null && locations.Count() >= 2)
|
if (locations != null && locations.Count() >= 2)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue