File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,13 +16,14 @@ extension MKMapView {
1616 /// Will tell the map to use the cache passed as parameter for getting the tiles.
1717 ///
1818 /// - Parameter cache: A cache that implements the `MapCacheProtocol`. Typically an instance of `MapCache`
19+ /// - Parameter canReplaceMapContent: Does the overlay replace the default map? It can be used to add a tile layer with centain level of transparency.
1920 ///
2021 /// - SeeAlso: `Readme`
2122 @discardableResult
22- public func useCache( _ cache: MapCacheProtocol ) -> CachedTileOverlay {
23+ public func useCache( _ cache: MapCacheProtocol , canReplaceMapContent : Bool = true ) -> CachedTileOverlay {
2324
2425 let tileServerOverlay = CachedTileOverlay ( withCache: cache)
25- tileServerOverlay. canReplaceMapContent = true
26+ tileServerOverlay. canReplaceMapContent = canReplaceMapContent
2627
2728 // Don't set `maximumZ` when wanting "over zooming".
2829 // TileOverlay will stop trying in zoom levels beyond `maximumZ`.
You can’t perform that action at this time.
0 commit comments