mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-20 22:05:07 +00:00
Update MetricGrid.cs
This commit is contained in:
parent
e8749ec7e0
commit
ef88d6566c
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ namespace MapControl
|
||||||
{
|
{
|
||||||
protected override void DrawGrid(PathFigureCollection figures, List<Label> labels)
|
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)));
|
var lineDistance = Math.Pow(10d, Math.Ceiling(Math.Log10(minLineDistance)));
|
||||||
|
|
||||||
if (lineDistance * 0.5 >= minLineDistance)
|
if (lineDistance * 0.5 >= minLineDistance)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue