Class MapFeatureClickEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.flow.component.ComponentEvent<Map>
-
- com.vaadin.flow.component.map.events.MapFeatureClickEvent
-
- All Implemented Interfaces:
Serializable
@DomEvent("map-feature-click") public class MapFeatureClickEvent extends ComponentEvent<Map>
Provides data for click events on geographic features- See Also:
- Serialized Form
-
-
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 Instance Methods Concrete Methods Modifier and Type Method Description Feature
getFeature()
The feature that was clickedVectorLayer
getLayer()
The layer that contains the featureMouseEventDetails
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
-
-