Esempio n. 1
0
 private void teardownLinedrawing() {
   mapController.getMap().events.unbind(mapListener);
   if (activeTask != null) {
     activeTask.cancel(true);
   }
   mapController.clearLines();
   mapFragment.updateMap();
 }
Esempio n. 2
0
 @Override
 public void onMapEvent(final Event e, MapPosition mapPosition) {
   if (activeTask != null) {
     activeTask.cancel(true);
   }
   activeTask = new DrawPathTask(app);
   activeTask.execute(route.getGeometry());
 }