In this tutorial I will demonstrate how to add events to your html control. Refer to the documentation for more information.
Before We Begin:
- Refer to how to Build a React/Python Site to get your basic site up and running.
- Refer to Basic Leaflet Map to get your basic leaflet control up and running.
OnClick
L.DomEvent.on(htmlControl, "click", (e) => { //Do your work here });
You must be logged in to post a comment.