2gis/iOS-SDKs-for-tiles

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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.

>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)



Images
Tiles map example

Web map example


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.