This commit is contained in:
ClemensFischer 2025-11-27 23:18:57 +01:00
parent ec99fc0cf7
commit 0f3635b97a
2 changed files with 3 additions and 2 deletions

View file

@ -172,6 +172,9 @@ namespace MapControl
foreach (var tileMatrix in tileMatrixes)
{
// Reuse existing WmtsTileMatrixLayer or create a new one with the
// index of tileMatrix in tileMatrixSet.TileMatrixes as zoom level.
//
var layer = childLayers.FirstOrDefault(layer => layer.WmtsTileMatrix == tileMatrix) ??
new WmtsTileMatrixLayer(tileMatrix, tileMatrixSet.TileMatrixes.IndexOf(tileMatrix));