         
         // Set the map's center coordinate -26.4537736,-49.1179425
         mapView.setCenterCoordinate(CLLocationCoordinate2D(latitude: lat, longitude: lon), zoomLevel: 15, animated: false)
+        view.addSubview(mapView)
+        
+        // Set the delegate property of our map view to self after instantiating it.
+        mapView.delegate = self
         
         // Declare the annotation `point` and set its coordinates, title, and subtitle
         let point = MGLPointAnnotation()

        
        // Add annotation `point` to the map
        mapView.addAnnotation(point)
        
        view.addSubview(mapView)
    }

    override func didReceiveMemoryWarning() {

import UIKit
import Mapbox

class ViewController: UIViewController, MGLMapViewDelegate {
    
    var mapView: MGLMapView!
    
