Пример #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()));
 }
Пример #2
0
 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);
   }
 }
Пример #3
0
  public void onMarkerSelect(OverlaySelectEvent event) {
    Marker marker = (Marker) event.getOverlay();

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