We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13283ea commit 671875cCopy full SHA for 671875c
1 file changed
MapCache/Classes/MKMapView+MapCache.swift
@@ -19,10 +19,10 @@ extension MKMapView {
19
///
20
/// - SeeAlso: `Readme`
21
@discardableResult
22
- public func useCache(_ cache: MapCacheProtocol) -> CachedTileOverlay {
+ public func useCache(_ cache: MapCacheProtocol, canReplaceMapContent: Bool = true) -> CachedTileOverlay {
23
24
let tileServerOverlay = CachedTileOverlay(withCache: cache)
25
- tileServerOverlay.canReplaceMapContent = true
+ tileServerOverlay.canReplaceMapContent = canReplaceMapContent
26
27
// Don't set `maximumZ` when wanting "over zooming".
28
// TileOverlay will stop trying in zoom levels beyond `maximumZ`.
0 commit comments