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.TileEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
TileErrorEvent, TileLoadEvent, TileLoadStartEvent, TileUnloadEvent

public abstract class TileEvent extends LeafletEvent
Base class for the Leaflet tile lifecycle events (tileloadstart, tileload, tileunload and tileerror), carrying the coordinates of the tile the event relates to.
See Also:
  • Constructor Details

    • TileEvent

      public TileEvent(LeafletMap source, boolean fromClient, String layerId, TileEventType eventType, Point coords)
      Creates a new tile event.
      Parameters:
      source - the source component
      fromClient - true if the event originated on the client side
      layerId - the identifier of the tile layer the event relates to
      eventType - the type of the tile event
      coords - the tile coordinates (x, y and z zoom level)
  • Method Details

    • getCoords

      public Point getCoords()
      Point object with the tile's x, y, and z (zoom level) coordinates.
      Returns:
      the coords
    • toString

      public String toString()
      Overrides:
      toString in class LeafletEvent