diff --git a/MapControl/Shared/TileSource.cs b/MapControl/Shared/TileSource.cs index c6ba47d3..3e86580b 100644 --- a/MapControl/Shared/TileSource.cs +++ b/MapControl/Shared/TileSource.cs @@ -45,16 +45,6 @@ namespace MapControl /// public string[] Subdomains { get; set; } - /// - /// Loads a tile ImageSource asynchronously from GetUri(x, y, zoomLevel). - /// - public virtual Task LoadImageAsync(int x, int y, int zoomLevel) - { - var uri = GetUri(x, y, zoomLevel); - - return uri != null ? ImageLoader.LoadImageAsync(uri) : Task.FromResult((ImageSource)null); - } - /// /// Gets the image Uri for the specified tile indices and zoom level. /// @@ -79,6 +69,16 @@ namespace MapControl return uri; } + + /// + /// Loads a tile ImageSource asynchronously from GetUri(x, y, zoomLevel). + /// + public virtual Task 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