mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
MapTileLayer implementation
This commit is contained in:
parent
933cb7f2ba
commit
407f786640
4 changed files with 17 additions and 26 deletions
|
|
@ -79,9 +79,9 @@ namespace MapControl
|
|||
{
|
||||
pendingTiles?.Clear();
|
||||
|
||||
if (tiles != null && tileSource != null)
|
||||
if (tileSource != null && tiles != null && (tiles = tiles.Where(tile => tile.IsPending)).Any())
|
||||
{
|
||||
pendingTiles = new ConcurrentStack<Tile>(tiles.Where(tile => tile.IsPending).Reverse());
|
||||
pendingTiles = new ConcurrentStack<Tile>(tiles.Reverse());
|
||||
|
||||
var tileCount = pendingTiles.Count;
|
||||
var taskCount = Math.Min(tileCount, MaxLoadTasks);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue