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:
  • 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

      public List<FeatureEventDetails> getFeatures()
      List of map features in the cluster.
      Returns:
      the list of features in the cluster
    • getMouseDetails

      public MouseEventDetails getMouseDetails()
      Gets the click's mouse event details.
      Returns:
      mouse event details