             NSLog("One or more of the map styles failed to load. \(error)")
         }
         
-        self.view = mapView
-    }
-
-    override func viewDidLoad() {
-        super.viewDidLoad()
-        
+        self.view.addSubview(self.mapView)
+        
+        self.mapView.addConstraints(fromStringArray: ["H:|[$self]|", "V:|-100-[$self]|"])
         
         // Set up the cluster manager with the supplied icon generator and
         // renderer.

    
    private var clusterManager: GMUClusterManager!
    
    var mapView: GMSMapView {
        get {
            return self.view as! GMSMapView
        }
    }
    
    var currentDataModel:KPDataModel?
    var selectedDataModel: KPDataModel? {

    
    var allDataModel: [KPDataModel]! {
        didSet {
            self.mapView.clear()
            for datamodel in self.allDataModel  {
                self.clusterManager.add(datamodel)
            }
