From 0f3635b97a38e3e2ebf6e672508d75d0986cb47c Mon Sep 17 00:00:00 2001 From: ClemensFischer Date: Thu, 27 Nov 2025 23:18:57 +0100 Subject: [PATCH] Comments --- MapControl/Shared/WmtsTileLayer.cs | 3 +++ MapControl/Shared/WmtsTileMatrixLayer.cs | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/MapControl/Shared/WmtsTileLayer.cs b/MapControl/Shared/WmtsTileLayer.cs index dad8c3bc..58fe25e2 100644 --- a/MapControl/Shared/WmtsTileLayer.cs +++ b/MapControl/Shared/WmtsTileLayer.cs @@ -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)); diff --git a/MapControl/Shared/WmtsTileMatrixLayer.cs b/MapControl/Shared/WmtsTileMatrixLayer.cs index 77a623f8..967d9230 100644 --- a/MapControl/Shared/WmtsTileMatrixLayer.cs +++ b/MapControl/Shared/WmtsTileMatrixLayer.cs @@ -22,8 +22,6 @@ namespace MapControl { public class WmtsTileMatrixLayer : Panel { - // zoomLevel is index of tileMatrix in a WmtsTileMatrixSet.TileMatrixes list. - // public WmtsTileMatrixLayer(WmtsTileMatrix wmtsTileMatrix, int zoomLevel) { this.SetRenderTransform(new MatrixTransform());