Class GoogleMapMarker.GoogleMapMarkerClickEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<C>
com.vaadin.flow.component.ClickEvent<GoogleMapMarker>
com.flowingcode.vaadin.addons.googlemaps.GoogleMapMarker.GoogleMapMarkerClickEvent
- All Implemented Interfaces:
Serializable
- Enclosing class:
- GoogleMapMarker
@DomEvent("google-map-marker-click")
public static class GoogleMapMarker.GoogleMapMarkerClickEvent
extends ClickEvent<GoogleMapMarker>
Event called on marker's click.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionGoogleMapMarkerClickEvent(GoogleMapMarker source, boolean fromClient, double lat, double lon) Creates a new event with the click coordinates as separate lat/lon values.GoogleMapMarkerClickEvent(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.ClickEvent
getButton, getClickCount, getClientX, getClientY, getScreenX, getScreenY, isAltKey, isCtrlKey, isMetaKey, isShiftKeyMethods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
GoogleMapMarkerClickEvent
public GoogleMapMarkerClickEvent(GoogleMapMarker source, boolean fromClient, @EventData("event.detail.latLng.lat()") double lat, @EventData("event.detail.latLng.lng()") double lon) Creates a new event with the click coordinates as separate lat/lon values.- Parameters:
source- the marker that was clickedfromClient- whether the event originated on the client sidelat- the latitude of the clicklon- the longitude of the click
-
GoogleMapMarkerClickEvent
@Deprecated public GoogleMapMarkerClickEvent(GoogleMapMarker source, boolean fromClient, elemental.json.JsonValue latLng) Deprecated.since 2.6.0, for removal. UseGoogleMapMarkerClickEvent(GoogleMapMarker, boolean, double, double)instead.Creates a new event with the click coordinates as a JSON value.- Parameters:
source- the marker that was clickedfromClient- whether the event originated on the client sidelatLng- a JSON object containinglatandlngproperties
-
-
Method Details
-
getLatitude
public double getLatitude() -
getLongitude
public double getLongitude()
-