mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update MapGraticule.WPF.cs
This commit is contained in:
parent
16fb98ac86
commit
f52281ba85
|
|
@ -136,7 +136,7 @@ namespace MapControl
|
|||
var interpolationDistance = lineDistance / interpolationCount;
|
||||
var latPoints = latSegments * interpolationCount;
|
||||
|
||||
var centerLon = Math.Floor(ParentMap.Center.Longitude / lineDistance) * lineDistance;
|
||||
var centerLon = Math.Round(ParentMap.Center.Longitude / lineDistance) * lineDistance;
|
||||
var minLon = centerLon - lineDistance;
|
||||
var maxLon = centerLon + lineDistance;
|
||||
var lonRange = ParentMap.MapProjection.Type == MapProjectionType.TransverseCylindrical ? 15d : 180d;
|
||||
|
|
|
|||
Loading…
Reference in a new issue