예제 #1
0
 private void processReceivedPoints(List<LatLng> points) {
   switch (surveyFragment.getPathToDraw()) {
     case MISSION:
       drone.mission.addWaypointsWithDefaultAltitude(points);
       break;
     case POLYGON:
       polygon.addPoints(points);
       surveyFragment.generateGrid();
       break;
     default:
       break;
   }
   update();
 }
예제 #2
0
 @Override
 public void onClearPolygon() {
   polygon.clearPolygon();
   update();
 }