mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Removed EnableMsixTooling
This commit is contained in:
parent
37dac5611d
commit
d4f39c5cd9
4 changed files with 15 additions and 19 deletions
|
|
@ -148,14 +148,14 @@ namespace MapControl
|
|||
|
||||
private void DrawCylindricalGraticule(PathFigureCollection figures, ICollection<Label> labels)
|
||||
{
|
||||
var bounds = ParentMap.ViewRectToBoundingBox(new Rect(0, 0, ParentMap.ActualWidth, ParentMap.ActualHeight));
|
||||
var latLabelStart = Math.Ceiling(bounds.South / lineDistance) * lineDistance;
|
||||
var lonLabelStart = Math.Ceiling(bounds.West / lineDistance) * lineDistance;
|
||||
var boundingBox = ParentMap.ViewRectToBoundingBox(new Rect(0, 0, ParentMap.ActualWidth, ParentMap.ActualHeight));
|
||||
var latLabelStart = Math.Ceiling(boundingBox.South / lineDistance) * lineDistance;
|
||||
var lonLabelStart = Math.Ceiling(boundingBox.West / lineDistance) * lineDistance;
|
||||
|
||||
for (var lat = latLabelStart; lat <= bounds.North; lat += lineDistance)
|
||||
for (var lat = latLabelStart; lat <= boundingBox.North; lat += lineDistance)
|
||||
{
|
||||
var p1 = ParentMap.LocationToView(new Location(lat, bounds.West));
|
||||
var p2 = ParentMap.LocationToView(new Location(lat, bounds.East));
|
||||
var p1 = ParentMap.LocationToView(new Location(lat, boundingBox.West));
|
||||
var p2 = ParentMap.LocationToView(new Location(lat, boundingBox.East));
|
||||
|
||||
if (p1.HasValue && p2.HasValue)
|
||||
{
|
||||
|
|
@ -163,17 +163,17 @@ namespace MapControl
|
|||
}
|
||||
}
|
||||
|
||||
for (var lon = lonLabelStart; lon <= bounds.East; lon += lineDistance)
|
||||
for (var lon = lonLabelStart; lon <= boundingBox.East; lon += lineDistance)
|
||||
{
|
||||
var p1 = ParentMap.LocationToView(new Location(bounds.South, lon));
|
||||
var p2 = ParentMap.LocationToView(new Location(bounds.North, lon));
|
||||
var p1 = ParentMap.LocationToView(new Location(boundingBox.South, lon));
|
||||
var p2 = ParentMap.LocationToView(new Location(boundingBox.North, lon));
|
||||
|
||||
if (p1.HasValue && p2.HasValue)
|
||||
{
|
||||
figures.Add(CreateLineFigure(p1.Value, p2.Value));
|
||||
}
|
||||
|
||||
for (var lat = latLabelStart; lat <= bounds.North; lat += lineDistance)
|
||||
for (var lat = latLabelStart; lat <= boundingBox.North; lat += lineDistance)
|
||||
{
|
||||
var location = new Location(lat, lon);
|
||||
var position = ParentMap.LocationToView(location);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue