mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Version 4.17.0: Added support for WMTS
This commit is contained in:
parent
f3d0dd0f74
commit
b687487be2
|
|
@ -102,7 +102,7 @@ namespace MapControl
|
|||
|
||||
/// <summary>
|
||||
/// Maximum number of background tile levels. Default value is 8.
|
||||
/// Is only effective in a MapTileLayer that is the MapLayer of its ParentMap.
|
||||
/// Only effective in a MapTileLayer or WmtsTileLayer that is the MapLayer of its ParentMap.
|
||||
/// </summary>
|
||||
public int MaxBackgroundLevels
|
||||
{
|
||||
|
|
|
|||
|
|
@ -125,6 +125,10 @@ namespace MapControl
|
|||
{
|
||||
currentMatrixes = currentMatrixes.Skip(currentMatrixes.Count - 1).ToList(); // last element only
|
||||
}
|
||||
else if (currentMatrixes.Count > MaxBackgroundLevels + 1)
|
||||
{
|
||||
currentMatrixes = currentMatrixes.Skip(currentMatrixes.Count - MaxBackgroundLevels - 1).ToList();
|
||||
}
|
||||
|
||||
var currentLayers = Children.Cast<WmtsTileMatrixLayer>()
|
||||
.Where(layer => currentMatrixes.Contains(layer.TileMatrix))
|
||||
|
|
|
|||
Loading…
Reference in a new issue