All Implemented Interfaces:
Serializable

@DomEvent("overlayadd") public class OverlayAddEvent extends LayersControlEvent
Event fired when an overlay layer is selected (added to the map) through the layers control.
See Also:
  • Constructor Details

    • OverlayAddEvent

      public OverlayAddEvent(LeafletMap source, boolean fromClient, @EventData("event.detail.target.options.uuid") String layerId, @EventData("event.detail.name") String name)
      Creates a new overlay add event.
      Parameters:
      source - the source component
      fromClient - true if the event originated on the client side
      layerId - the identifier of the overlay layer that was added
      name - the name of the overlay layer as shown in the layers control