Improved MapGraticule

This commit is contained in:
ClemensFischer 2026-02-07 00:01:04 +01:00
parent c8449be6ff
commit 3e814c4272
4 changed files with 78 additions and 103 deletions

View file

@ -49,15 +49,15 @@ namespace MapControl
if (ParentMap != null)
{
var pathGeometry = new PathGeometry();
var labels = DrawGraticule(pathGeometry.Figures);
var labels = new List<Label>();
var pen = new Pen
{
Brush = Foreground,
Thickness = StrokeThickness,
};
DrawGraticule(pathGeometry.Figures, labels);
drawingContext.DrawGeometry(null, pen, pathGeometry);
if (labels.Count > 0)