iOS-SDKs-for-tiles icon indicating copy to clipboard operation
iOS-SDKs-for-tiles copied to clipboard

DemoTiles

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.

<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>

You should use DGSTileOverlay in your ViewController to render our tiles

We only support 0-18 zoom levels. Other zoom levels will not be supported.

import MapKit

class ViewController: UIViewController, MKMapViewDelegate {

func viewDidLoad() {
let mapView = MKMapView()
mapView.delegate = self
let tilesOverlay = DGSTileOverlay()
mapView.insert(tilesOverlay, at: 0, level: .aboveLabels)
self.view.addSubview(self.mapView)
}

// MARK: MKMapViewDelegate

public func mapView(_ mapView: MKMapView, rendererFor overlay: MKOverlay) -> MKOverlayRenderer {
return MKTileOverlayRenderer(overlay: overlay)
}

}

Images

Tiles map example

Web map example

Also we have OpenGL map SDK: MapGL