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
Provides data for when a feature is dropped after a drag operation
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionMapFeatureDropEvent
(Map source, boolean fromClient, String featureId, String layerId, elemental.json.JsonArray coordinate, elemental.json.JsonArray startCoordinate) -
Method Summary
Modifier and TypeMethodDescriptionThe coordinates that the feature has been dragged toThe feature that was moved using drag and dropgetLayer()
The layer that contains the featureThe coordinates that the feature has been dragged fromThe source that contains the featureMethods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
Methods inherited from class java.util.EventObject
toString
-
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
The feature that was moved using drag and drop -
getLayer
The layer that contains the feature -
getVectorSource
The source that contains the feature -
getCoordinate
The coordinates that the feature has been dragged to -
getStartCoordinate
The coordinates that the feature has been dragged from
-