         locationManager.desiredAccuracy = kCLLocationAccuracyBest
         
         // 現在位置からどれぐらい動いたら更新するか. 単位はm
-        locationManager.distanceFilter = 10
+        locationManager.distanceFilter = 1
         locationManager.delegate = self
         locationManager.startUpdatingLocation()
         

        super.viewDidLoad()
        initMapView()
        initManager()
        // notification()
        setLocateManager()
        
        
    }
    
    func initManager(){
        mapRouteManager.mapView = mapView
        mapCheckpoint.mapView = mapView
        
        checkpoints = mapCheckpoint.getRandomDummyCheckpoint()
        mapCheckpoint.drawCheckpointMarker(checkpoints)
        
    }
    
    // mapViewの初期化. 最初は琉球大学を写すよう指定
    func initMapView(){

        // GoogleMapの初期化
        getInitDummyCamera()
        self.mapView.delegate = self
        self.mapView.settings.compassButton = true
        self.mapView.settings.myLocationButton = true

    
    let locationManager = CLLocationManager()
    let scoreManager = ScoreManager()
    let mapCheckpoint = MapCheckpoint()
    
    // エレメントの数
    let elmentNum = 10
    
    // エレメントを選択した時に必要な変数群
    var selectElementWindow: UIWindow!
    var selectElementButton = UIButton()
    let initWaitTime = 5.0 + 1.0;
    var waitTime = 0.0;
    var waitTimeLabel = UILabel()
    
    
    var checkpoints:[CLLocation] = []
    
    @IBOutlet var mapView: GMSMapView!
    
    var selectElementPos = CLLocation()
    var isGetCheckpoint = false

    let cameraZoomLevel:Float = 17
    
