Version 4.10.0: Updated target framework versions. Cleanup of TypeConverters, ImageLoader, MBTileSource.

This commit is contained in:
ClemensF 2018-08-09 18:58:47 +02:00
parent acf43d70ea
commit 1359cea83c
5 changed files with 61 additions and 45 deletions

View file

@ -3,7 +3,6 @@
// Licensed under the Microsoft Public License (Ms-PL)
using System;
using System.Diagnostics;
using System.Globalization;
using System.Threading.Tasks;
#if WINDOWS_UWP
@ -112,19 +111,11 @@ namespace MapControl
public virtual async Task<ImageSource> LoadImageAsync(int x, int y, int zoomLevel)
{
ImageSource imageSource = null;
var uri = GetUri(x, y, zoomLevel);
if (uri != null)
{
try
{
imageSource = await ImageLoader.LoadImageAsync(uri);
}
catch (Exception ex)
{
Debug.WriteLine("TileSource: {0}: {1}", uri, ex.Message);
}
imageSource = await ImageLoader.LoadImageAsync(uri);
}
return imageSource;