From eebf17e6feac68c5376c2c18bd650e9c55d28b44 Mon Sep 17 00:00:00 2001 From: ClemensFischer Date: Fri, 21 Nov 2025 16:37:06 +0100 Subject: [PATCH] Tile collection properties --- MapControl/Shared/MapTileLayer.cs | 2 +- MapControl/Shared/WmtsTileMatrixLayer.cs | 3 ++- MapControl/WPF/BitmapTileMatrixLayer.cs | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/MapControl/Shared/MapTileLayer.cs b/MapControl/Shared/MapTileLayer.cs index 4930dd38..7da636b8 100644 --- a/MapControl/Shared/MapTileLayer.cs +++ b/MapControl/Shared/MapTileLayer.cs @@ -57,7 +57,7 @@ namespace MapControl public TileMatrix TileMatrix { get; private set; } - public ImageTileList Tiles { get; private set; } = []; + public ICollection Tiles { get; private set; } = []; /// /// Minimum zoom level supported by the MapTileLayer. Default value is 0. diff --git a/MapControl/Shared/WmtsTileMatrixLayer.cs b/MapControl/Shared/WmtsTileMatrixLayer.cs index b927d383..550abd11 100644 --- a/MapControl/Shared/WmtsTileMatrixLayer.cs +++ b/MapControl/Shared/WmtsTileMatrixLayer.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Generic; #if WPF using System.Windows; using System.Windows.Controls; @@ -34,7 +35,7 @@ namespace MapControl public TileMatrix TileMatrix { get; private set; } - public ImageTileList Tiles { get; private set; } = []; + public IEnumerable Tiles { get; private set; } = []; public void UpdateRenderTransform(ViewTransform viewTransform) { diff --git a/MapControl/WPF/BitmapTileMatrixLayer.cs b/MapControl/WPF/BitmapTileMatrixLayer.cs index 5eff8cdf..a08e14bb 100644 --- a/MapControl/WPF/BitmapTileMatrixLayer.cs +++ b/MapControl/WPF/BitmapTileMatrixLayer.cs @@ -46,7 +46,7 @@ namespace MapControl public TileMatrix TileMatrix { get; private set; } = new TileMatrix(zoomLevel, 1, 1, 0, 0); - public List Tiles { get; private set; } = []; + public IEnumerable Tiles { get; private set; } = []; protected override void OnRender(DrawingContext drawingContext) {