Class MapClusterClickEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<MapBase>
com.vaadin.flow.component.map.events.MapClusterClickEvent
- All Implemented Interfaces:
Serializable
@DomEvent("map-cluster-click")
public class MapClusterClickEvent
extends com.vaadin.flow.component.ComponentEvent<MapBase>
Provides data for click events on a cluster of features
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionMapClusterClickEvent(Map source, boolean fromClient, tools.jackson.databind.node.ArrayNode featureIds, String layerId, int pageX, int pageY, boolean altKey, boolean ctrlKey, boolean metaKey, boolean shiftKey, int button) -
Method Summary
Modifier and TypeMethodDescriptionList of map features in the cluster.Gets the click's mouse event details.Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
MapClusterClickEvent
public MapClusterClickEvent(Map source, boolean fromClient, @EventData("event.detail.features.map(feature => feature.id)") tools.jackson.databind.node.ArrayNode featureIds, @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
-
getFeatures
List of map features in the cluster.- Returns:
- the list of features in the cluster
-
getMouseDetails
Gets the click's mouse event details.- Returns:
- mouse event details
-