Skip to content

Instantly share code, notes, and snippets.

@here-devblog-gists
Created January 26, 2017 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save here-devblog-gists/81bd4936b26f3bd8f36f7c9f118267c4 to your computer and use it in GitHub Desktop.
Save here-devblog-gists/81bd4936b26f3bd8f36f7c9f118267c4 to your computer and use it in GitHub Desktop.
override func viewDidLoad() {
super.viewDidLoad()
// set position, zoomlevel and a bit of tilt
mapView.setGeoCenter(NMAGeoCoordinates(latitude:52.51, longitude:13.39), with: NMAMapAnimation.bow)
mapView.zoomLevel = 17.0
mapView.tilt = 45.0
// show 3D Landmarks / 3D models for famous buildings
mapView.landmarksVisible = false
// show extruded buildings on closer zoomlevels
mapView.extrudedBuildingsVisible = true
// enable all embedded POIs on the map
mapView.setVisibility(true, for: NMAMapPoiCategory.all )
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment