java.lang.Object
java.lang.Enum<MapEventType>
org.vaadin.addons.componentfactory.leaflet.layer.events.types.MapEventType
All Implemented Interfaces:
Serializable, Comparable<MapEventType>, Constable, LeafletEventType

public enum MapEventType extends Enum<MapEventType> implements LeafletEventType
Enumeration of the map level Leaflet event names, such as load, move, zoom and resize.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Fired when the map is initialized (when its center and zoom are set for the first time).
    Fired repeatedly during any movement of the map, including pan and fly animations.
    Fired when the center of the map stops changing (e.g.
    Fired when the view of the map starts changing (e.g.
    Fired when the map is resized.
    Fired when the map is destroyed with remove method.
    Fired when the map needs to redraw its content (this usually happens on map zoom or load).
    Fired repeatedly during any change in zoom level, including zoom and fly animations.
    Fired at least once per zoom animation.
    Fired when the map has changed, after any animations.
    Fired when the number of zoomlevels on the map is changed due to adding or removing a layer.
    Fired when the map zoom is about to change (e.g.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the Leaflet event name of this event type.
    Returns the enum constant of this class with the specified name.
    static MapEventType[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.vaadin.addons.componentfactory.leaflet.layer.events.types.LeafletEventType

    name
  • Enum Constant Details

    • zoomlevelschange

      public static final MapEventType zoomlevelschange
      Fired when the number of zoomlevels on the map is changed due to adding or removing a layer.
    • resize

      public static final MapEventType resize
      Fired when the map is resized.
    • unload

      public static final MapEventType unload
      Fired when the map is destroyed with remove method.
    • viewreset

      public static final MapEventType viewreset
      Fired when the map needs to redraw its content (this usually happens on map zoom or load). Very useful for creating custom overlays.
    • load

      public static final MapEventType load
      Fired when the map is initialized (when its center and zoom are set for the first time).
    • zoomstart

      public static final MapEventType zoomstart
      Fired when the map zoom is about to change (e.g. before zoom animation).
    • movestart

      public static final MapEventType movestart
      Fired when the view of the map starts changing (e.g. user starts dragging the map).
    • zoom

      public static final MapEventType zoom
      Fired repeatedly during any change in zoom level, including zoom and fly animations.
    • zoomanim

      public static final MapEventType zoomanim
      Fired at least once per zoom animation. For continuous zoom, like pinch zooming, fired once per frame during zoom.
    • move

      public static final MapEventType move
      Fired repeatedly during any movement of the map, including pan and fly animations.
    • zoomend

      public static final MapEventType zoomend
      Fired when the map has changed, after any animations.
    • moveend

      public static final MapEventType moveend
      Fired when the center of the map stops changing (e.g. user stopped dragging the map).
  • Method Details

    • values

      public static MapEventType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MapEventType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getLeafletEvent

      public String getLeafletEvent()
      Returns the Leaflet event name of this event type.
      Specified by:
      getLeafletEvent in interface LeafletEventType
      Returns:
      the Leaflet event name