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:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionDragEndEvent(GoogleMapMarker source, boolean fromClient, double lat, double lon) Creates a new event with the drag end coordinates as separate lat/lon values.DragEndEvent(GoogleMapMarker source, boolean fromClient, elemental.json.JsonValue latLng) Deprecated.since 2.6.0, for removal. -
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(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 draggedfromClient- whether the event originated on the client sidelat- the latitude of the drag endlon- 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. UseDragEndEvent(GoogleMapMarker, boolean, double, double)instead.Creates a new event with the drag end coordinates as a JSON value.- Parameters:
source- the marker that was draggedfromClient- whether the event originated on the client sidelatLng- a JSON object containinglatandlngproperties
-
-
Method Details
-
getLatitude
public double getLatitude() -
getLongitude
public double getLongitude()
-