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
81ccc7bf96
commit
0960f8a175
|
|
@ -80,8 +80,6 @@ namespace MapControl
|
|||
cacheName = null; // no tile caching
|
||||
}
|
||||
|
||||
progress?.Report(0d);
|
||||
|
||||
var tileQueue = pendingTiles; // pendingTiles may change while LoadTilesFromQueue() is running
|
||||
|
||||
async Task LoadTilesFromQueue()
|
||||
|
|
@ -101,6 +99,8 @@ namespace MapControl
|
|||
}
|
||||
}
|
||||
|
||||
progress?.Report(0d);
|
||||
|
||||
return Task.WhenAll(Enumerable.Range(0, taskCount).Select(_ => Task.Run(LoadTilesFromQueue)));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue