You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To add a leaflet event as a signal, a few things need to be done.
Identify the correct leaflet event. For drawDeleted, it will probably be in leaflet-draw.
Identify parent object. In case of drawDeleted, the best bet would be to find where drawCreated is called, and create it along with that.
Once we have this, to actually implement a signal, is fairly straightforward. Base class pyqtlet/leaflet/core/evented.py has a _connectEventToSignal method that can be used to connect any leaflet event to a pyqtsignal.
So in order to create a new event/signal:
Create a pyqtSignal in the correct object.
Call a self._connectEventToSignal() in the objects __init__ method to connect the leaflet event to the pyqtSignal you just created.
Request to add drawDeleted event similar to drawCreated event
The text was updated successfully, but these errors were encountered: