mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update WmtsTileLayer.cs
This commit is contained in:
parent
dd738c85a4
commit
1fde5e322e
|
|
@ -106,21 +106,18 @@ namespace MapControl
|
|||
}
|
||||
else if (UpdateChildLayers(tileMatrixSet))
|
||||
{
|
||||
((WmtsTileSource)TileSource).TileMatrixSet = tileMatrixSet;
|
||||
|
||||
var cacheName = SourceName;
|
||||
|
||||
if (TileSource is WmtsTileSource tileSource)
|
||||
if (!string.IsNullOrEmpty(cacheName))
|
||||
{
|
||||
tileSource.TileMatrixSet = tileMatrixSet;
|
||||
|
||||
if (!string.IsNullOrEmpty(cacheName))
|
||||
if (!string.IsNullOrEmpty(Layer))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(Layer))
|
||||
{
|
||||
cacheName += "/" + Layer.Replace(':', '_');
|
||||
}
|
||||
|
||||
cacheName += "/" + tileMatrixSet.Identifier.Replace(':', '_');
|
||||
cacheName += "/" + Layer.Replace(':', '_');
|
||||
}
|
||||
|
||||
cacheName += "/" + tileMatrixSet.Identifier.Replace(':', '_');
|
||||
}
|
||||
|
||||
var tiles = ChildLayers.SelectMany(layer => layer.Tiles);
|
||||
|
|
|
|||
Loading…
Reference in a new issue