Leaflet Events
Every time something happens in Leaflet, e.g. user clicks on a marker or map zoom changes,
the corresponding object sends an event which you can subscribe to with a function.
It allows you to react to user interaction.
Continuing their
quick Start tutorial
view directly