mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 06:55:04 +00:00
Minor cleanup in TileImageLoader
This commit is contained in:
parent
fa5368e77a
commit
ee4f049334
5 changed files with 15 additions and 13 deletions
|
|
@ -37,7 +37,7 @@ namespace MapControl
|
|||
public static string CacheKeyFormat { get; set; } = "{0}/{1}/{2}/{3}{4}";
|
||||
|
||||
|
||||
public class TileQueue : ConcurrentStack<Tile>
|
||||
private class TileQueue : ConcurrentStack<Tile>
|
||||
{
|
||||
public void Enqueue(IEnumerable<Tile> tiles)
|
||||
{
|
||||
|
|
@ -58,10 +58,10 @@ namespace MapControl
|
|||
/// Loads all pending tiles from the tiles collection.
|
||||
/// If tileSource.UriFormat starts with "http" and sourceName is a non-empty string,
|
||||
/// tile images will be cached in the TileImageLoader's Cache (if it's not null).
|
||||
/// The method is async void because it implements void ITileImageLoader.LoadTilesAsync
|
||||
/// The method is async void because it implements void ITileImageLoader.LoadTiles
|
||||
/// and is not awaited when it is called in MapTileLayer.UpdateTiles().
|
||||
/// </summary>
|
||||
public async void LoadTilesAsync(IEnumerable<Tile> tiles, TileSource tileSource, string sourceName)
|
||||
public async void LoadTiles(IEnumerable<Tile> tiles, TileSource tileSource, string sourceName)
|
||||
{
|
||||
tileQueue.Clear();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue