mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
Updated WmtsTileLayer
This commit is contained in:
parent
0f3635b97a
commit
733c3d1266
2 changed files with 35 additions and 30 deletions
|
|
@ -148,7 +148,7 @@ namespace MapControl
|
|||
|
||||
private bool SetTileMatrix()
|
||||
{
|
||||
// Add 0.001 to avoid rounding issues.
|
||||
// Add 0.001 to avoid floating point precision.
|
||||
//
|
||||
var tileMatrixZoomLevel = (int)Math.Floor(ParentMap.ZoomLevel - ZoomLevelOffset + 0.001);
|
||||
var tileMatrixScale = MapBase.ZoomLevelToScale(tileMatrixZoomLevel);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue