mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update TileSource.cs
This commit is contained in:
parent
ddf77441f2
commit
eaef66ebf0
|
|
@ -45,16 +45,6 @@ namespace MapControl
|
|||
/// </summary>
|
||||
public string[] Subdomains { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Loads a tile ImageSource asynchronously from GetUri(x, y, zoomLevel).
|
||||
/// </summary>
|
||||
public virtual Task<ImageSource> LoadImageAsync(int x, int y, int zoomLevel)
|
||||
{
|
||||
var uri = GetUri(x, y, zoomLevel);
|
||||
|
||||
return uri != null ? ImageLoader.LoadImageAsync(uri) : Task.FromResult((ImageSource)null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the image Uri for the specified tile indices and zoom level.
|
||||
/// </summary>
|
||||
|
|
@ -79,6 +69,16 @@ namespace MapControl
|
|||
|
||||
return uri;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Loads a tile ImageSource asynchronously from GetUri(x, y, zoomLevel).
|
||||
/// </summary>
|
||||
public virtual Task<ImageSource> LoadImageAsync(int x, int y, int zoomLevel)
|
||||
{
|
||||
var uri = GetUri(x, y, zoomLevel);
|
||||
|
||||
return uri != null ? ImageLoader.LoadImageAsync(uri) : Task.FromResult((ImageSource)null);
|
||||
}
|
||||
}
|
||||
|
||||
public class TmsTileSource : TileSource
|
||||
|
|
|
|||
Loading…
Reference in a new issue