Skip to content

Instantly share code, notes, and snippets.

@mitnick78
Created June 3, 2018 12:41
Show Gist options
  • Save mitnick78/977c3af9394492d324d89f4348e5ad4a to your computer and use it in GitHub Desktop.
Save mitnick78/977c3af9394492d324d89f4348e5ad4a to your computer and use it in GitHub Desktop.
//
// MapViewController.swift
// wherein
//
// Created by christophe milliere on 10/05/2018.
// Copyright © 2018 christophe milliere. All rights reserved.
//
import UIKit
import NMAKit
import Alamofire
class MapViewController: UIViewController, NMANavigationManagerDelegate {
@IBOutlet weak var mapView: NMAMapView!
@IBOutlet weak var collectionView: UICollectionView!
let cellId = "monumentCell"
var monuments = [MonumentSlider]()
var monumentApi = [MonumentApi]()
var firstUpdate = true;
var locationManager: CLLocationManager?
var locationCurrent: CLLocation?
override func viewDidLoad() {
super.viewDidLoad()
mapView.mapScheme = NMAMapSchemeReducedDay
_ = UIStoryboard(name: "Main", bundle: nil)
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
}
func toControllerView(id: Int) {
let detailController = self.storyboard?.instantiateViewController(withIdentifier: "DetailController") as! DetailController
detailController.id = id
self.present(detailController, animated: true, completion: nil)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment