java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<LeafletMap>
org.vaadin.addons.componentfactory.leaflet.layer.events.LeafletEvent
org.vaadin.addons.componentfactory.leaflet.layer.events.AddEvent
All Implemented Interfaces:
Serializable

@DomEvent("leaflet-add") public class AddEvent extends LeafletEvent
Event fired when a layer is added to the map.
See Also:
  • Constructor Details

    • AddEvent

      public AddEvent(LeafletMap source, boolean fromClient, @EventData("event.detail.target.options.uuid") String layerId)
      Creates a new add event.
      Parameters:
      source - the component that fired the event
      fromClient - true if the event originated from the client side
      layerId - the identifier of the layer that was added