Exemplo n.º 1
0
 public void onMarkerDrag(MarkerDragEvent event) {
   Marker marker = event.getMarker();
   addMessage(
       new FacesMessage(
           FacesMessage.SEVERITY_INFO,
           "Marca trasladada",
           "Lat:" + marker.getLatlng().getLat() + ", Lng:" + marker.getLatlng().getLng()));
 }
Exemplo n.º 2
0
  /** @param event the marker dragged */
  public void onMarkerDrag(MarkerDragEvent event) {
    selectedMarker = event.getMarker();

    LatLng latLng = selectedMarker.getLatlng();

    baseStationBean.setLongitude(round(latLng.getLng(), 6));
    baseStationBean.setLatitude(round(latLng.getLat(), 6));
  }