Leaflet maps: extended interaction possibilities
The interaction with leaflet maps is currently quite limited and fixed. It is only possible to select markers and create a single new one by clicking on the map.
Interaction should be programmable and include at least the following events:
- clicks/double clicks on markers
- clicks/double clicks on the map
- events generated by HTML of windows within the leaflet maps
A proposed solution is to use a state which is updated by certain events, similar to how the SVG editors handles interaction. For the events generated from HTML, a possible solution is to provide a way to generate a piece of JS code from a state-update-function, which can then be attached to an event handler. This is not very clean, but probably there is no really clean way to make it working.