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();
 }
 @Override
 public void onClearPolygon() {
   polygon.clearPolygon();
   update();
 }