Class MoveEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<LeafletMap>
org.vaadin.addons.componentfactory.leaflet.layer.events.LeafletEvent
org.vaadin.addons.componentfactory.leaflet.layer.events.BaseMoveEvent
org.vaadin.addons.componentfactory.leaflet.layer.events.MoveEvent
- All Implemented Interfaces:
Serializable
Event fired repeatedly while the map is being moved (panned).
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionMoveEvent(LeafletMap source, boolean fromClient, String layerId, double newLat, Double newLng, double oldLat, double oldLng) Creates a new move event. -
Method Summary
Methods inherited from class org.vaadin.addons.componentfactory.leaflet.layer.events.BaseMoveEvent
getLatLng, getOldLatLng, toStringMethods inherited from class org.vaadin.addons.componentfactory.leaflet.layer.events.LeafletEvent
getLayerId, getTypeMethods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, getUI, isFromClient, unregisterListener
-
Constructor Details
-
MoveEvent
public MoveEvent(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 move event.- Parameters:
source- the source componentfromClient-trueif the event originated on the client sidelayerId- the identifier of the layer that movednewLat- the latitude of the new center coordinatesnewLng- the longitude of the new center coordinatesoldLat- the latitude of the previous center coordinatesoldLng- the longitude of the previous center coordinates
-