mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-02-20 14:44:56 +01:00
Update MetricGrid.cs
This commit is contained in:
parent
e8749ec7e0
commit
ef88d6566c
|
|
@ -24,7 +24,7 @@ namespace MapControl
|
|||
{
|
||||
protected override void DrawGrid(PathFigureCollection figures, List<Label> labels)
|
||||
{
|
||||
var minLineDistance = MinLineDistance / ParentMap.ViewTransform.Scale;
|
||||
var minLineDistance = Math.Max(MinLineDistance / ParentMap.ViewTransform.Scale, 1d);
|
||||
var lineDistance = Math.Pow(10d, Math.Ceiling(Math.Log10(minLineDistance)));
|
||||
|
||||
if (lineDistance * 0.5 >= minLineDistance)
|
||||
|
|
|
|||
Loading…
Reference in a new issue