mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update TileImageLoader.cs
This commit is contained in:
parent
3f396140b6
commit
00b738a3b5
|
|
@ -63,13 +63,18 @@ namespace MapControl
|
|||
{
|
||||
tileQueue.Clear();
|
||||
|
||||
tileSource = source;
|
||||
cacheName = Cache != null && (bool)source.UriFormat?.StartsWith("http") ? cache : null;
|
||||
|
||||
tiles = tiles.Where(tile => tile.Pending);
|
||||
|
||||
tileSource = source;
|
||||
cacheName = null;
|
||||
|
||||
if (tiles.Any() && tileSource != null)
|
||||
{
|
||||
if (Cache != null && tileSource.UriFormat != null && tileSource.UriFormat.StartsWith("http"))
|
||||
{
|
||||
cacheName = cache;
|
||||
}
|
||||
|
||||
tileQueue.Enqueue(tiles);
|
||||
|
||||
while (taskCount < Math.Min(tileQueue.Count, MaxLoadTasks))
|
||||
|
|
|
|||
Loading…
Reference in a new issue