// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control
// Copyright © 2024 Clemens Fischer
// Licensed under the Microsoft Public License (Ms-PL)
using System;
using System.Threading.Tasks;
using Windows.Storage;
using Windows.UI.Core;
using Windows.UI.Xaml.Media;
namespace MapControl
{
public partial class TileImageLoader
{
///
/// Default folder where the Cache instance may save data.
///
public static string DefaultCacheFolder => ApplicationData.Current.TemporaryFolder.Path;
private static async Task LoadTileAsync(Tile tile, Func> loadImageFunc)
{
var tcs = new TaskCompletionSource