Version 4.4.1: MapPolygon for UWP in progress

This commit is contained in:
ClemensF 2018-02-12 23:28:32 +01:00
parent 6b024e2195
commit 946713b8eb
5 changed files with 8 additions and 14 deletions

View file

@ -38,7 +38,7 @@ namespace MapControl
if (ParentMap != null && Polygons != null)
{
foreach (var polygon in Polygons.Where(p => p.Any()))
foreach (var polygon in Polygons.Where(p => p.Count() >= 2))
{
var points = polygon.Select(loc => LocationToPoint(loc));
var polyline = new PolyLineSegment(points.Skip(1), true);

View file

@ -33,7 +33,7 @@ namespace MapControl
{
Data.Figures.Clear();
if (ParentMap != null && Locations != null && Locations.Any())
if (ParentMap != null && Locations != null && Locations.Count() >= 2)
{
var points = Locations.Select(loc => LocationToPoint(loc));
var polyline = new PolyLineSegment(points.Skip(1), true);

View file

@ -33,7 +33,7 @@ namespace MapControl
{
Data.Figures.Clear();
if (ParentMap != null && Locations != null && Locations.Any())
if (ParentMap != null && Locations != null && Locations.Count() >= 2)
{
var points = Locations.Select(loc => LocationToPoint(loc));
var polyline = new PolyLineSegment(points.Skip(1), true);