Interface SupportsLocationEvents

All Superinterfaces:
Evented
All Known Implementing Classes:
LeafletMap

public interface SupportsLocationEvents extends Evented
Mixin interface adding default methods to register listeners for geolocation related Leaflet events on the implementing component.
  • Method Details

    • onLocationError

      default void onLocationError(LeafletEventListener<ErrorEvent> listener)
      Fired when geolocation (using the locate method) failed.
      Parameters:
      listener - the listener to call when the event occurs, not null
    • onLocationFound

      default void onLocationFound(LeafletEventListener<LocationEvent> listener)
      Fired when geolocation (using the locate method) went successfully.
      Parameters:
      listener - the listener to call when the event occurs, not null