Updated MapProjection and MapGraticule

This commit is contained in:
ClemensFischer 2026-02-01 01:42:24 +01:00
parent 2a45c1165c
commit cfed3575ac
16 changed files with 392 additions and 355 deletions

View file

@ -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;
}
}
}