Class ZoomAnimEvent
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.ZoomAnimEvent
- All Implemented Interfaces:
Serializable
Event fired during the zoom animation, carrying the target zoom animation data.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionZoomAnimEvent(LeafletMap source, boolean fromClient, String layerId, int zoom, double latitude, double longitude, boolean noUpdate) Creates a new zoom animation event. -
Method Summary
Methods 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
-
ZoomAnimEvent
public ZoomAnimEvent(LeafletMap source, boolean fromClient, @EventData("event.detail.target.options.uuid") String layerId, @EventData("event.detail.zoom") int zoom, @EventData("event.detail.center.lat") double latitude, @EventData("event.detail.center.lng") double longitude, @EventData("event.detail.center.noUpdate") boolean noUpdate) Creates a new zoom animation event.- Parameters:
source- the source componentfromClient-trueif the event originated on the client sidelayerId- the identifier of the layer that zoomedzoom- the zoom level the animation is going tolatitude- the latitude of the center the animation is going tolongitude- the longitude of the center the animation is going tonoUpdate-trueif layers should not update their contents due to this event
-
-
Method Details
-
getCenter
The current center of the map- Returns:
- the current center of the map
-
getZoom
public int getZoom()The current zoom level of the map- Returns:
- the current zoom level of the map
-
isNoUpdate
public boolean isNoUpdate()Whether layers should update their contents due to this event- Returns:
- true if layers should update their contents due to this event
-
toString
- Overrides:
toStringin classLeafletEvent
-