Interface SupportsLocationEvents
- All Superinterfaces:
Evented
- All Known Implementing Classes:
LeafletMap
Mixin interface adding default methods to register listeners for geolocation related Leaflet
events on the implementing component.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonLocationError(LeafletEventListener<ErrorEvent> listener) Fired when geolocation (using the locate method) failed.default voidonLocationFound(LeafletEventListener<LocationEvent> listener) Fired when geolocation (using the locate method) went successfully.Methods inherited from interface org.vaadin.addons.componentfactory.leaflet.layer.events.Evented
addEventListener, clearAllEventListeners, hasEventListeners, listens, off, off, on, removeEventListener
-
Method Details
-
onLocationError
Fired when geolocation (using the locate method) failed.- Parameters:
listener- the listener to call when the event occurs, notnull
-
onLocationFound
Fired when geolocation (using the locate method) went successfully.- Parameters:
listener- the listener to call when the event occurs, notnull
-