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())); }
/** @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)); }