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()));
 }
 public void addMarker(ActionEvent actionEvent) {
   Marker marker = new Marker(new LatLng(lat, lng), title);
   marker.setDraggable(true);
   draggableModel.addOverlay(marker);
   addMessage(
       new FacesMessage(
           FacesMessage.SEVERITY_INFO, "Marca agregada", "Lat:" + lat + ", Lng:" + lng));
   for (Marker marker1 : draggableModel.getMarkers()) {
     marker1.setDraggable(true);
   }
 }
  public void onMarkerSelect(OverlaySelectEvent event) {
    Marker marker = (Marker) event.getOverlay();

    addMessage(
        new FacesMessage(FacesMessage.SEVERITY_INFO, "Marca Seleccionada", marker.getTitle()));
  }