mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 06:55:04 +00:00
Version 4.12.2 Minor changes in TileImageLoader.
This commit is contained in:
parent
0c0a0ae511
commit
8491a4fc7c
16 changed files with 70 additions and 81 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue