mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Version 4.4.1: MapPolygon for UWP in progress
This commit is contained in:
parent
6b024e2195
commit
946713b8eb
5 changed files with 8 additions and 14 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue