public void onMarkerSelect(OverlaySelectEvent event) {
    Marker marker = (Marker) event.getOverlay();

    FacesContext.getCurrentInstance()
        .addMessage(
            null,
            new FacesMessage(FacesMessage.SEVERITY_INFO, "Marker Selected", marker.getTitle()));
  }
  public void selectCurrentMarker(OverlaySelectEvent event) {
    if (event == null) return; // if no event set then NOOP

    this.currentMarker = (Marker) event.getOverlay();
    this.currentEvent = (Event) this.currentMarker.getData();
  }
Exemplo n.º 3
0
  public void onMarkerSelect(OverlaySelectEvent event) {
    Marker marker = (Marker) event.getOverlay();

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