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 System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Windows;
using System.Windows.Documents;
using System.Windows.Media;
@ -87,17 +86,9 @@ namespace MapControl
}
}
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
};
figure.Segments.Add(new PolyLineSegment(points.Skip(1), true));
return figure;
return new PolyLineSegment(points, true);
}
}
}