mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-01-08 17:50:17 +01:00
Update WmtsTileMatrix.cs
This commit is contained in:
parent
65462697df
commit
05750d669c
|
|
@ -1,4 +1,5 @@
|
|||
#if WPF
|
||||
using System;
|
||||
#if WPF
|
||||
using System.Windows;
|
||||
#elif AVALONIA
|
||||
using Avalonia;
|
||||
|
|
@ -18,10 +19,9 @@ namespace MapControl
|
|||
public int MatrixWidth => matrixWidth;
|
||||
public int MatrixHeight => matrixHeight;
|
||||
|
||||
// Indicates if the total width in meters covers the whole earth
|
||||
// circumference (minus one millimeter for floating point precision).
|
||||
// Indicates if the total width in meters matches the earth circumference.
|
||||
//
|
||||
public bool HasFullHorizontalCoverage { get; } =
|
||||
matrixWidth * tileWidth / scale >= 360d * MapProjection.Wgs84MeterPerDegree - 1e-3;
|
||||
Math.Abs(matrixWidth * tileWidth / scale - 360d * MapProjection.Wgs84MeterPerDegree) < 1e-3;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue