Version 4.1.0

This commit is contained in:
ClemensF 2017-08-23 23:33:27 +02:00
parent 0be26af38c
commit ef6d1ed959
15 changed files with 186 additions and 129 deletions

View file

@ -48,8 +48,14 @@ namespace MapControl
var lonLabelStart = Math.Ceiling(bounds.West / lineDistance) * lineDistance;
var latLabels = new List<Label>((int)((bounds.North - latLabelStart) / lineDistance) + 1);
var lonLabels = new List<Label>((int)((bounds.East - lonLabelStart) / lineDistance) + 1);
var typeface = CreateTypeface();
var pen = CreatePen();
var typeface = new Typeface(FontFamily, FontStyle, FontWeight, FontStretch);
var pen = new Pen
{
Brush = Stroke,
Thickness = StrokeThickness,
DashStyle = new DashStyle(StrokeDashArray, StrokeDashOffset),
DashCap = StrokeDashCap
};
for (var lat = latLabelStart; lat <= bounds.North; lat += lineDistance)
{