TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Jan 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Victor.
To run the example project, clone the repo, and run pod install
from the Example directory first.
iOS 8.0+, Swift 2.3, Swift 3
Do not forget to Allow Arbitrary Loads for App Transport Security Settings in info.plist
Swift 2.3, Swift 3:
To start maps downloading and saving call following method with passing of initial coordinate lat and lon, radius and zoom:
BVOfflineMapManager.shared.startDownloading(lat: Double, lon: Double, zoom: CustomMapZoom, radius: CustomMapRadius)
To reload map tiles from online to offline and back call:
BVOfflineMapManager.shared.reloadTileOverlay(mapView: MKMapView, overlayType: CustomMapTileOverlayType?)
To clear cached maps to free disk space call:
BVOfflineMapManager.shared.clearMapCache(callBack: (Bool) -> ())
BVOfflineMapManager is available through CocoaPods. To install it, simply add the following line to your Podfile:
Swift 3
pod 'BVOfflineMapManager', '0.1.1'
Swift 2.3
pod 'BVOfflineMapManager', '0.1.0'
Victor Barskov, [email protected]
BVOfflineMapManager is available under the MIT license. See the LICENSE file for more info.