mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
Reverted to not awaitable TileImageLoader
This commit is contained in:
parent
775d584df7
commit
178cec8e66
5 changed files with 68 additions and 66 deletions
|
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using System.Threading.Tasks;
|
||||
#if WPF
|
||||
using System.Windows;
|
||||
using System.Windows.Media;
|
||||
|
|
@ -112,7 +111,7 @@ namespace MapControl
|
|||
return finalSize;
|
||||
}
|
||||
|
||||
protected override async Task UpdateTileLayerAsync(bool resetTiles)
|
||||
protected override void UpdateTileLayerAsync(bool resetTiles)
|
||||
{
|
||||
if (ParentMap == null || ParentMap.MapProjection.Type != MapProjectionType.WebMercator)
|
||||
{
|
||||
|
|
@ -131,8 +130,7 @@ namespace MapControl
|
|||
}
|
||||
|
||||
UpdateTiles();
|
||||
|
||||
await LoadTilesAsync(Tiles, SourceName);
|
||||
LoadTiles(Tiles, SourceName);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue