publiclab / Leaflet.DistortableImage

A Leaflet extension to distort or "rubber sheet" images
https://publiclab.github.io/Leaflet.DistortableImage/examples/
BSD 2-Clause "Simplified" License
273 stars 284 forks source link

Button Management System to Enable/Disable Tooltip Feature #1329

Open segun-codes opened 1 year ago

segun-codes commented 1 year ago

Tooltip feature support for image overlays is now built into the Leaflet.DistortableImage library. However, there are concerns that event listeners set up to enable this feature may (or may not) interfere with other event listeners used in the library. Whereas a candidate tested solution has been implemented to address this concern, a decision was made to suspend further development of the solution to allow for observing how the tooltip feature performs without the flexibility of a functionality to disable/re-enable it.

Finally, note this issue is a spin-off from here: Tooltip Feature for ImageOverlays.

Please describe the desired behavior. A functionality to disable/enable tooltip feature in the library where such flexibility is considered useful in improving user experience.

Additional context (optional) The candidate solution that addresses the outlined concern is shown in illustration 1 below. Again, find more details here Tooltip Feature for ImageOverlays.

Illustration 1: tooltipEnableDisable

segun-codes commented 1 year ago

Hi @jywarren, here's the issue as agreed. And of course, I am happy to continue and complete work on the solution exhibited in illustration 1 above should a decision consistent with this be made . Many thanks!