Beispiel #1
0
 private void onModeChanged() {
   if (newLocationPresenter.isActive()) {
     if (newLocationMarker == null) {
       createNewLocationMarker();
     }
     newLocationMarker.setOpacity(1);
     panToNewLocation();
   } else if (newLocationMarker != null) {
     newLocationMarker.setOpacity(0);
   }
 }
Beispiel #2
0
 private void panToNewLocation() {
   if (!map.getBounds().contains(newLocationMarker.getLatLng())) {
     map.panTo(newLocationMarker.getLatLng());
   }
 }
Beispiel #3
0
 private void onNewLocationPosChanged() {
   if (newLocationMarker != null) {
     Log.debug("New marker pos: " + newLocationPresenter.getLatLng());
     newLocationMarker.setLatLng(newLatLng(newLocationPresenter.getLatLng()));
   }
 }