diff --git a/MapControl/Shared/MapGraticule.cs b/MapControl/Shared/MapGraticule.cs index d59c6dcb..3c37466f 100644 --- a/MapControl/Shared/MapGraticule.cs +++ b/MapControl/Shared/MapGraticule.cs @@ -28,10 +28,20 @@ namespace MapControl { private class Label { - public string LatitudeText { get; set; } - public string LongitudeText { get; set; } - public Point Position { get; set; } - public double Rotation { get; set; } + public Label(string latText, string lonText, double x, double y, double rotation) + { + LatitudeText = latText; + LongitudeText = lonText; + X = x; + Y = y; + Rotation = rotation; + } + + public string LatitudeText { get; } + public string LongitudeText { get; } + public double X { get; } + public double Y { get; } + public double Rotation { get; } } private const double LineInterpolationResolution = 2d; @@ -96,7 +106,7 @@ namespace MapControl labelFormat, hemisphere, seconds / 3600, seconds / 60 % 60, seconds % 60); } - private void AddLabel(ICollection