Class GoogleMapMarker.DragEndEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<GoogleMapMarker>
com.flowingcode.vaadin.addons.googlemaps.GoogleMapMarker.DragEndEvent
All Implemented Interfaces:
Serializable
Enclosing class:
GoogleMapMarker

@DomEvent("google-map-marker-dragend") public static class GoogleMapMarker.DragEndEvent extends ComponentEvent<GoogleMapMarker>
Event that is called on marker's drag end.
See Also:
  • Constructor Details

    • DragEndEvent

      public DragEndEvent(GoogleMapMarker source, boolean fromClient, @EventData("event.detail.latLng.lat()") double lat, @EventData("event.detail.latLng.lng()") double lon)
      Creates a new event with the drag end coordinates as separate lat/lon values.
      Parameters:
      source - the marker that was dragged
      fromClient - whether the event originated on the client side
      lat - the latitude of the drag end
      lon - the longitude of the drag end
    • DragEndEvent

      @Deprecated public DragEndEvent(GoogleMapMarker source, boolean fromClient, elemental.json.JsonValue latLng)
      Deprecated.
      since 2.6.0, for removal. Use DragEndEvent(GoogleMapMarker, boolean, double, double) instead.
      Creates a new event with the drag end coordinates as a JSON value.
      Parameters:
      source - the marker that was dragged
      fromClient - whether the event originated on the client side
      latLng - a JSON object containing lat and lng properties
  • Method Details

    • getLatitude

      public double getLatitude()
    • getLongitude

      public double getLongitude()