Created
July 30, 2018 16:39
-
-
Save here-devblog-gists/e3d11072cd7d7a8d1619400904f91271 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import NMAKit | |
class ViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
/* HERE Maps */ | |
let mapView = NMAMapView() | |
let coordinates = NMAGeoCoordinates(latitude: 47.611571, longitude: -122.333003) | |
mapView.useHighResolutionMap = true | |
mapView.zoomLevel = 13.2 | |
mapView.set(geoCenter: coordinates, animation: .linear) | |
view = mapView | |
let mapCircle = NMAMapCircle(coordinates: coordinates, radius: 150) | |
mapView.add(mapCircle) | |
/* Google Maps */ | |
//let camera = GMSCameraPosition.camera(withLatitude: 47.611571, longitude: -122.333003, zoom: 6.0) | |
//let mapView = GMSMapView.map(withFrame: CGRect.zero, camera: camera) | |
//view = mapView | |
//let marker = GMSMarker() | |
//marker.position = CLLocationCoordinate2D(latitude: -33.86, longitude: 151.20) | |
//marker.title = "Sydney" | |
//marker.snippet = "Australia" | |
//marker.map = mapView | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment