Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.md

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

About

No description, website, or topics provided.

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.