mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Improved TileImageLoader
This commit is contained in:
parent
d9c5455a83
commit
c6f7b2d665
9 changed files with 70 additions and 87 deletions
|
|
@ -75,11 +75,7 @@ namespace MapControl
|
|||
}
|
||||
}
|
||||
|
||||
if (!tile.Image.DispatcherQueue.TryEnqueue(DispatcherQueuePriority.Low, callback))
|
||||
{
|
||||
tile.IsLoaded = false;
|
||||
tcs.TrySetResult();
|
||||
}
|
||||
tile.Image.DispatcherQueue.TryEnqueue(DispatcherQueuePriority.Low, callback);
|
||||
|
||||
return tcs.Task;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue