All Superinterfaces:
Evented
All Known Implementing Classes:
FeatureGroup, LeafletMap, MarkerClusterGroup

public interface SupportsLayerEvents extends Evented
Mixin interface adding default methods to register listeners for layer add and remove Leaflet events on the implementing component.
  • Method Details

    • onLayerAdd

      default void onLayerAdd(LeafletEventListener<ErrorEvent> listener)
      Fired when a layer is added to this layer
      Parameters:
      listener - the listener to call when the event occurs, not null
    • onLayerRemove

      default void onLayerRemove(LeafletEventListener<LocationEvent> listener)
      Fired when a layer is removed from this layer
      Parameters:
      listener - the listener to call when the event occurs, not null