mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 15:05:50 +00:00
TileImageLoader.MaxLoadTasks no longer static
This commit is contained in:
parent
266f44a0fd
commit
f5d7f4f835
1 changed files with 5 additions and 5 deletions
|
|
@ -31,6 +31,10 @@ namespace MapControl
|
|||
{
|
||||
private static ILogger Logger => field ??= ImageLoader.LoggerFactory?.CreateLogger(typeof(TileImageLoader));
|
||||
|
||||
private readonly Queue<Tile> tileQueue = new Queue<Tile>();
|
||||
private int tileCount;
|
||||
private int taskCount;
|
||||
|
||||
/// <summary>
|
||||
/// Default folder path where a persistent cache implementation may save data, i.e. "C:\ProgramData\MapControl\TileCache".
|
||||
/// </summary>
|
||||
|
|
@ -67,11 +71,7 @@ namespace MapControl
|
|||
/// <summary>
|
||||
/// Maximum number of parallel tile loading tasks. The default value is 4.
|
||||
/// </summary>
|
||||
public static int MaxLoadTasks { get; set; } = 4;
|
||||
|
||||
private readonly Queue<Tile> tileQueue = new Queue<Tile>();
|
||||
private int tileCount;
|
||||
private int taskCount;
|
||||
public int MaxLoadTasks { get; set; } = 4;
|
||||
|
||||
public void BeginLoadTiles(IEnumerable<Tile> tiles, TileSource tileSource, string cacheName, IProgress<double> progress)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue