Class GoogleMap.GoogleMapClickEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<C>
com.vaadin.flow.component.ClickEvent<GoogleMap>
com.flowingcode.vaadin.addons.googlemaps.GoogleMap.GoogleMapClickEvent
- All Implemented Interfaces:
Serializable
- Enclosing class:
- GoogleMap
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionGoogleMapClickEvent(GoogleMap source, boolean fromClient, double lat, double lon) Creates a new event with the click coordinates as separate lat/lon values.GoogleMapClickEvent(GoogleMap 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
-
GoogleMapClickEvent
public GoogleMapClickEvent(GoogleMap 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 map that was clickedfromClient- whether the event originated on the client sidelat- the latitude of the clicklon- the longitude of the click
-
GoogleMapClickEvent
@Deprecated public GoogleMapClickEvent(GoogleMap source, boolean fromClient, elemental.json.JsonValue latLng) Deprecated.since 2.6.0, for removal. UseGoogleMapClickEvent(GoogleMap, boolean, double, double)instead.Creates a new event with the click coordinates as a JSON value.- Parameters:
source- the map 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()
-