mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 06:26:41 +00:00
Improved Task usage
This commit is contained in:
parent
cbe2751db7
commit
4e753ae718
10 changed files with 30 additions and 39 deletions
|
|
@ -91,7 +91,7 @@ namespace MapControl
|
|||
return finalSize;
|
||||
}
|
||||
|
||||
protected override Task UpdateTileLayer(bool tileSourceChanged)
|
||||
protected override async Task UpdateTileLayer(bool tileSourceChanged)
|
||||
{
|
||||
// tileSourceChanged is ignored here because it is always false.
|
||||
|
||||
|
|
@ -100,15 +100,12 @@ namespace MapControl
|
|||
{
|
||||
Children.Clear();
|
||||
|
||||
return LoadTiles(null, null); // stop TileImageLoader
|
||||
await LoadTiles(null, null); // stop TileImageLoader
|
||||
}
|
||||
|
||||
if (UpdateChildLayers(tileMatrixSet))
|
||||
else if (UpdateChildLayers(tileMatrixSet))
|
||||
{
|
||||
return LoadTiles(tileMatrixSet);
|
||||
await LoadTiles(tileMatrixSet);
|
||||
}
|
||||
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
protected override void SetRenderTransform()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue