Name: iOS-SDKs-for-tiles
Owner: 2GIS
Description: null
Created: 2017-08-25 07:24:48.0
Updated: 2018-05-14 11:50:12.0
Pushed: 2018-05-14 11:50:10.0
Homepage: null
Size: 1322
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This is demo project to show how integrate 2GIS tiles in Apple Maps
You should set in your Info.plist file to be able download our tiles.
>NSAppTransportSecurity</key>
t>
>NSAllowsArbitraryLoads</key>
e/>
ct>
You should use DGSTileOverlay
in your ViewController to render our tiles
rt MapKit
s ViewController: UIViewController, MKMapViewDelegate {
viewDidLoad() {
mapView = MKMapView()
iew.delegate = self
tilesOverlay = DGSTileOverlay()
iew.insert(tilesOverlay, at: 0, level: .aboveLabels)
.view.addSubview(self.mapView)
ARK: MKMapViewDelegate
ic func mapView(_ mapView: MKMapView, rendererFor overlay: MKOverlay) -> MKOverlayRenderer {
rn MKTileOverlayRenderer(overlay: overlay)