Пример #1
0
 /**
  * Method allowing to update the user point when dragging an overlay on the map
  *
  * @param oldLong
  * @param oldLat
  * @param newLong
  * @param newLat
  */
 public void updateUserPoint(double oldLong, double oldLat, double newLong, double newLat) {
   if (Session.isAuthenticatedUser) {
     container.getMapPointInfo().getValidateButton().setVisible(true);
     for (UserPoint userPoint : authUserPoints) {
       if ((userPoint.getLongitude().doubleValue() == oldLong)
           && (userPoint.getLatitude().doubleValue() == oldLat)) {
         userPoint.setLongitude(new Double(newLong));
         userPoint.setLatitude(new Double(newLat));
         break;
       }
     }
   }
 }