Created
June 3, 2018 12:41
-
-
Save mitnick78/977c3af9394492d324d89f4348e5ad4a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// | |
// 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