Version 4.8.0: Improved WPF MapPolyline and MapPolygon accuracy.

This commit is contained in:
ClemensF 2018-04-11 22:29:50 +02:00
parent 5bc42d1f07
commit 0a7d0fccd2
5 changed files with 5 additions and 5 deletions

View file

@ -42,7 +42,7 @@ namespace MapControl
if (ParentMap != null) if (ParentMap != null)
{ {
AddPolylineFigures(figures, Locations, true); AddPolylineLocations(figures, Locations, true);
} }
} }
} }

View file

@ -42,7 +42,7 @@ namespace MapControl
if (ParentMap != null) if (ParentMap != null)
{ {
AddPolylineFigures(figures, Locations, false); AddPolylineLocations(figures, Locations, false);
} }
} }
} }

View file

@ -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)
{ {

View file

@ -40,7 +40,7 @@ namespace MapControl
{ {
foreach (var polygon in Polygons) foreach (var polygon in Polygons)
{ {
AddPolylineFigures(figures, polygon, true); AddPolylineLocations(figures, polygon, true);
} }
} }
} }

View file

@ -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)
{ {