Class GoogleMapAdvancedMarker.DragEndEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<GoogleMapAdvancedMarker>
com.flowingcode.vaadin.addons.googlemaps.GoogleMapAdvancedMarker.DragEndEvent
- All Implemented Interfaces:
Serializable
- Enclosing class:
- GoogleMapAdvancedMarker
@DomEvent("google-map-marker-dragend")
public static class GoogleMapAdvancedMarker.DragEndEvent
extends ComponentEvent<GoogleMapAdvancedMarker>
Event that is called on marker's drag end.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionDragEndEvent(GoogleMapAdvancedMarker source, boolean fromClient, double lat, double lon) Creates a new event with the drag end coordinates. -
Method Summary
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
DragEndEvent
public DragEndEvent(GoogleMapAdvancedMarker 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.- Parameters:
source- the marker that was draggedfromClient- whether the event originated on the client sidelat- the latitude of the drag endlon- the longitude of the drag end
-
-
Method Details
-
getLatitude
public double getLatitude() -
getLongitude
public double getLongitude()
-