From eaef66ebf0998f04630ce823c321220f003b82d3 Mon Sep 17 00:00:00 2001 From: ClemensF Date: Sun, 25 Oct 2020 17:35:33 +0100 Subject: [PATCH] Update TileSource.cs --- MapControl/Shared/TileSource.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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