         super.viewDidLoad()
         self.hideKeyboardWhenTappedAround()
         initSearchField()
-        self.updateLocation()
         
         mapView.delegate = self
         

    
    //fonction qui initialise les markers des amis sur la carte
    func initContactMarkers() {
        var annotations = [MKAnnotation]()

        for friend in self.user.friendList!{
            let friendLocation = CLLocationCoordinate2D(latitude: friend.latitude, longitude: friend.longitude)
            let friendAnnotation = UserAnnotation(coordinate: friendLocation, title: friend.pseudo, subtitle: "")
            annotations.append(friendAnnotation)
        }
        
        self.mapView.addAnnotations(annotations)
        
        if let location = self.mapView.userLocation.location {
            self.centerMapOnLocation(location)

    var locationManager = CLLocationManager()
    var pusher : Pusher = Pusher(key: "")
    var channels : [PusherChannel] = []
    var annotations = [MKAnnotation]()
    
    @IBOutlet weak var searchTextField: UITextField!
    @IBOutlet weak var searchIcon: UITextField!
