mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 06:55:04 +00:00
Updated MapProjection and MapGraticule
This commit is contained in:
parent
2a45c1165c
commit
cfed3575ac
16 changed files with 392 additions and 355 deletions
|
|
@ -1,6 +1,5 @@
|
|||
using Windows.Foundation;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
#if UWP
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
|
|
@ -112,24 +111,16 @@ namespace MapControl
|
|||
base.OnViewportChanged(e);
|
||||
}
|
||||
|
||||
private static PathFigure CreatePolylineFigure(IEnumerable<Point> points)
|
||||
private static PolyLineSegment CreatePolyLineSegment(IEnumerable<Point> points)
|
||||
{
|
||||
var figure = new PathFigure
|
||||
{
|
||||
StartPoint = points.First(),
|
||||
IsClosed = false,
|
||||
IsFilled = false
|
||||
};
|
||||
|
||||
var polyline = new PolyLineSegment();
|
||||
|
||||
foreach (var p in points.Skip(1))
|
||||
foreach (var p in points)
|
||||
{
|
||||
polyline.Points.Add(p);
|
||||
}
|
||||
|
||||
figure.Segments.Add(polyline);
|
||||
return figure;
|
||||
return polyline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue