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