We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
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:
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
ConstructorsConstructorDescriptionMapFeatureDropEvent
(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 to
The feature that was moved using drag and drop
getLayer()
The layer that contains the feature
The coordinates that the feature has been dragged from
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 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
-