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:
@DomEvent("map-feature-click") public class MapFeatureClickEvent extends ComponentEvent<Map>
Provides data for click events on geographic features
See Also:
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description MapFeatureClickEvent​(Map source, boolean fromClient, String featureId, String layerId, int pageX, int pageY, boolean altKey, boolean ctrlKey, boolean metaKey, boolean shiftKey, int button)
-
Method Summary
All Methods Modifier and Type Method Description Feature
getFeature()
The feature that was clicked
VectorLayer
getLayer()
The layer that contains the feature
MouseEventDetails
getMouseDetails()
Gets the click's mouse event details.
VectorSource
getVectorSource()
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 Detail
-
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 Detail
-
getFeature
public Feature getFeature()
The feature that was clicked
-
getLayer
public VectorLayer getLayer()
The layer that contains the feature
-
getVectorSource
public VectorSource getVectorSource()
The source that contains the feature
-
getMouseDetails
public MouseEventDetails getMouseDetails()
Gets the click's mouse event details.
Returns:
mouse event details
-
-