We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.component.map.events.
Class MapFeatureClickEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<Map>
com.vaadin.flow.component.map.events.MapFeatureClickEvent
All Implemented Interfaces:
Provides data for click events on geographic features
See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionMapFeatureClickEvent
(Map source, boolean fromClient, String featureId, String layerId, int pageX, int pageY, boolean altKey, boolean ctrlKey, boolean metaKey, boolean shiftKey, int button) -
Method Summary
Modifier and TypeMethodDescriptionThe feature that was clicked
getLayer()
The layer that contains the feature
Gets the click's mouse event details.
The source that contains the feature
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
MapFeatureClickEvent
public MapFeatureClickEvent(Map source, boolean fromClient, @EventData("event.detail.feature.id") String featureId, @EventData("event.detail.layer.id") String layerId, @EventData("event.detail.originalEvent.pageX") int pageX, @EventData("event.detail.originalEvent.pageY") int pageY, @EventData("event.detail.originalEvent.altKey") boolean altKey, @EventData("event.detail.originalEvent.ctrlKey") boolean ctrlKey, @EventData("event.detail.originalEvent.metaKey") boolean metaKey, @EventData("event.detail.originalEvent.shiftKey") boolean shiftKey, @EventData("event.detail.originalEvent.button") int button)
-
-
Method Details
-
getFeature
The feature that was clicked
-
getLayer
The layer that contains the feature
-
getVectorSource
The source that contains the feature
-
getMouseDetails
Gets the click's mouse event details.
Returns:
mouse event details
-