All Implemented Interfaces:
Serializable

@DomEvent("drag") public class DragEvent extends BaseMoveEvent
Event fired repeatedly while the user drags a marker or layer, carrying the previous and the current coordinates.
See Also:
  • Constructor Details

    • DragEvent

      public DragEvent(LeafletMap source, boolean fromClient, @EventData("event.target.options.uuid") String layerId, @EventData("event.latlng.lat") Double newLat, @EventData("event.latlng.lng") Double newLng, @EventData("event.oldLatLng.lat") double oldLat, @EventData("event.oldLatLng.lng") double oldLng)
      Creates a new drag event.
      Parameters:
      source - the component that fired the event
      fromClient - true if the event originated from the client side
      layerId - the identifier of the layer being dragged
      newLat - the latitude of the new coordinates
      newLng - the longitude of the new coordinates
      oldLat - the latitude of the previous coordinates
      oldLng - the longitude of the previous coordinates
  • Method Details