From f6c019eee900fd7480e96001129712c0ab1e6a0e Mon Sep 17 00:00:00 2001 From: Locutus of Borg <33581862+kkieffer@users.noreply.github.com> Date: Sun, 23 Jun 2024 21:18:38 -0400 Subject: [PATCH] making loadTile in CachedTileOverlay.swift "open" Allows overriding by subclass implementations --- MapCache/Classes/CachedTileOverlay.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MapCache/Classes/CachedTileOverlay.swift b/MapCache/Classes/CachedTileOverlay.swift index 8695451..d61874b 100644 --- a/MapCache/Classes/CachedTileOverlay.swift +++ b/MapCache/Classes/CachedTileOverlay.swift @@ -46,7 +46,7 @@ open class CachedTileOverlay : MKTileOverlay { /// When invoked it will load the tile using the standard OS implementation (if `useCache`is `false`) /// or from the cache (if `useCache` is `true` /// - override public func loadTile(at path: MKTileOverlayPath, + override open func loadTile(at path: MKTileOverlayPath, result: @escaping (Data?, Error?) -> Void) { if !self.useCache { // Use cache by use cache is not set. // print("loadTile:: not using cache")