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
9b05281fb7
commit
0aff99138c
|
|
@ -115,7 +115,6 @@ namespace MapControl
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
Tile tile;
|
Tile tile;
|
||||||
int tileNumber;
|
|
||||||
|
|
||||||
lock (tileQueue)
|
lock (tileQueue)
|
||||||
{
|
{
|
||||||
|
|
@ -126,16 +125,14 @@ namespace MapControl
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
tileNumber = tileCount - tileQueue.Count;
|
var tileNumber = tileCount - tileQueue.Count;
|
||||||
|
progress?.Report((double)tileNumber / tileCount);
|
||||||
|
Logger?.LogDebug("Loading tile {number} of {count} ({zoom}/{column}/{row}) in thread {thread}",
|
||||||
|
tileNumber, tileCount, tile.ZoomLevel, tile.Column, tile.Row, Environment.CurrentManagedThreadId);
|
||||||
}
|
}
|
||||||
|
|
||||||
tile.IsPending = false;
|
tile.IsPending = false;
|
||||||
|
|
||||||
progress?.Report((double)tileNumber / tileCount);
|
|
||||||
|
|
||||||
Logger?.LogDebug("Loading tile {number} of {count} ({zoom}/{column}/{row}) in thread {thread}",
|
|
||||||
tileNumber, tileCount, tile.ZoomLevel, tile.Column, tile.Row, Environment.CurrentManagedThreadId);
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// Pass tileSource.LoadImageAsync calls to platform-specific method
|
// Pass tileSource.LoadImageAsync calls to platform-specific method
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue