You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.component.map.events.

Class MapFeatureDropEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<Map>
com.vaadin.flow.component.map.events.MapFeatureDropEvent

All Implemented Interfaces:

Serializable

@DomEvent("map-feature-drop") public class MapFeatureDropEvent extends ComponentEvent<Map>

Provides data for when a feature is dropped after a drag operation

See Also:

  • Constructor Details

    • MapFeatureDropEvent

      public MapFeatureDropEvent(Map source, boolean fromClient, @EventData("event.detail.feature.id") String featureId, @EventData("event.detail.layer.id") String layerId, @EventData("event.detail.coordinate") elemental.json.JsonArray coordinate, @EventData("event.detail.startCoordinate") elemental.json.JsonArray startCoordinate)
  • Method Details

    • getFeature

      public Feature getFeature()

      The feature that was moved using drag and drop

    • getLayer

      public VectorLayer getLayer()

      The layer that contains the feature

    • getVectorSource

      public VectorSource getVectorSource()

      The source that contains the feature

    • getCoordinate

      public Coordinate getCoordinate()

      The coordinates that the feature has been dragged to

    • getStartCoordinate

      public Coordinate getStartCoordinate()

      The coordinates that the feature has been dragged from