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

@DomEvent("zoomanim") public class ZoomAnimEvent extends LeafletEvent
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

    Constructors
    Constructor
    Description
    ZoomAnimEvent(LeafletMap source, boolean fromClient, String layerId, int zoom, double latitude, double longitude, boolean noUpdate)
    Creates a new zoom animation event.
  • Method Summary

    Modifier and Type
    Method
    Description
    The current center of the map
    int
    The current zoom level of the map
    boolean
    Whether layers should update their contents due to this event
     

    Methods inherited from class org.vaadin.addons.componentfactory.leaflet.layer.events.LeafletEvent

    getLayerId, getType

    Methods inherited from class com.vaadin.flow.component.ComponentEvent

    getSource, getUI, isFromClient, unregisterListener

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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 component
      fromClient - true if the event originated on the client side
      layerId - the identifier of the layer that zoomed
      zoom - the zoom level the animation is going to
      latitude - the latitude of the center the animation is going to
      longitude - the longitude of the center the animation is going to
      noUpdate - true if layers should not update their contents due to this event
  • Method Details

    • getCenter

      public LatLng 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

      public String toString()
      Overrides:
      toString in class LeafletEvent