Exemple #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();
   }
 }
Exemple #2
0
 private void initZoomLevel(DrivingSpeed speed, int key, int defKey) {
   zoomController.setDrivingZoom(prefs.getInt(getString(key), res.getInteger(defKey)), speed);
 }