Interface SupportsLayerEvents
- All Superinterfaces:
Evented
- All Known Implementing Classes:
FeatureGroup,LeafletMap,MarkerClusterGroup
Mixin interface adding default methods to register listeners for layer add and remove Leaflet
events on the implementing component.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonLayerAdd(LeafletEventListener<ErrorEvent> listener) Fired when a layer is added to this layerdefault voidonLayerRemove(LeafletEventListener<LocationEvent> listener) Fired when a layer is removed from this layerMethods inherited from interface org.vaadin.addons.componentfactory.leaflet.layer.events.Evented
addEventListener, clearAllEventListeners, hasEventListeners, listens, off, off, on, removeEventListener
-
Method Details
-
onLayerAdd
Fired when a layer is added to this layer- Parameters:
listener- the listener to call when the event occurs, notnull
-
onLayerRemove
Fired when a layer is removed from this layer- Parameters:
listener- the listener to call when the event occurs, notnull
-