             self.clusterManager.cluster()
         }
     }
-    
-    
-    
-    
-    override func loadView() {
+
+    override func viewDidLoad() {
+        super.viewDidLoad()
+        
+        
         let camera = GMSCameraPosition.camera(withLatitude: 25.018744, longitude: 121.532785, zoom: 18.0)
-        let mapView = GMSMapView.map(withFrame: CGRect.zero, camera: camera)
+        self.mapView = GMSMapView.map(withFrame: CGRect.zero, camera: camera)
         
         mapView.delegate = self
         

            NSLog("One or more of the map styles failed to load. \(error)")
        }
        
        self.view = mapView
    }

    override func viewDidLoad() {
        super.viewDidLoad()
        
        
        // Set up the cluster manager with the supplied icon generator and
        // renderer.

    
    private var clusterManager: GMUClusterManager!
    
    var mapView: GMSMapView!
    
    var currentDataModel:KPDataModel?
    var selectedDataModel: KPDataModel? {
