Enum Class MapEventType
java.lang.Object
java.lang.Enum<MapEventType>
org.vaadin.addons.componentfactory.leaflet.layer.events.types.MapEventType
- All Implemented Interfaces:
Serializable,Comparable<MapEventType>,Constable,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 ConstantsEnum ConstantDescriptionFired 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 TypeMethodDescriptionReturns the Leaflet event name of this event type.static MapEventTypeReturns the enum constant of this class with the specified name.static MapEventType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.vaadin.addons.componentfactory.leaflet.layer.events.types.LeafletEventType
name
-
Enum Constant Details
-
zoomlevelschange
Fired when the number of zoomlevels on the map is changed due to adding or removing a layer. -
resize
Fired when the map is resized. -
unload
Fired when the map is destroyed with remove method. -
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
Fired when the map is initialized (when its center and zoom are set for the first time). -
zoomstart
Fired when the map zoom is about to change (e.g. before zoom animation). -
movestart
Fired when the view of the map starts changing (e.g. user starts dragging the map). -
zoom
Fired repeatedly during any change in zoom level, including zoom and fly animations. -
zoomanim
Fired at least once per zoom animation. For continuous zoom, like pinch zooming, fired once per frame during zoom. -
move
Fired repeatedly during any movement of the map, including pan and fly animations. -
zoomend
Fired when the map has changed, after any animations. -
moveend
Fired when the center of the map stops changing (e.g. user stopped dragging the map).
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getLeafletEvent
Returns the Leaflet event name of this event type.- Specified by:
getLeafletEventin interfaceLeafletEventType- Returns:
- the Leaflet event name
-