All Projects → 2gis → iOS-SDKs-for-tiles

2gis / iOS-SDKs-for-tiles

Licence: MPL-2.0 license
No description, website, or topics provided.

Programming Languages

javascript
184084 projects - #8 most used programming language
swift
15916 projects
HTML
75241 projects

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].