mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 06:26:41 +00:00
Update WmtsTileLayer.cs
This commit is contained in:
parent
dd738c85a4
commit
1fde5e322e
1 changed files with 7 additions and 10 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue