예제 #1
0
 private void manageMap(Location originalLocation, Location location) {
   if (location != null) {
     zoomController.setAverageSpeed(getAverageSpeed());
     zoomController.setCurrentSpeed(originalLocation.getSpeed());
     if (isPaging) {
       mapController.setZoomLevel(zoomController.getZoom());
       mapController.quarterOn(location, route.getCurrentRotationBearing());
     }
     routeLocationIndicator.setRotation((float) route.getCurrentRotationBearing());
     routeLocationIndicator.setPosition(location.getLatitude(), location.getLongitude());
     mapFragment.updateMap();
   }
 }
예제 #2
0
 private void initZoomLevel(DrivingSpeed speed, int key, int defKey) {
   zoomController.setDrivingZoom(prefs.getInt(getString(key), res.getInteger(defKey)), speed);
 }