Version 4.12.2 Minor changes in TileImageLoader.

This commit is contained in:
ClemensF 2019-06-08 23:18:33 +02:00
parent 0c0a0ae511
commit 8491a4fc7c
16 changed files with 70 additions and 81 deletions

View file

@ -110,15 +110,9 @@ namespace MapControl
/// </summary>
public virtual async Task<ImageSource> LoadImageAsync(int x, int y, int zoomLevel)
{
ImageSource imageSource = null;
var uri = GetUri(x, y, zoomLevel);
if (uri != null)
{
imageSource = await ImageLoader.LoadImageAsync(uri);
}
return imageSource;
return uri != null ? await ImageLoader.LoadImageAsync(uri) : null;
}
private string GetDefaultUri(int x, int y, int zoomLevel)