publiclab / Leaflet.DistortableImage

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

Empty Tooltip Text Displayed on Images #1387

Open segun-codes opened 11 months ago

segun-codes commented 11 months ago

Describe the bug: As observed by yuri-karelics, when image is not configured to have tooltip, the tooltip is shown as empty. Proper behaviour is to disable tooltip completely if not setup and no object, suggesting tooltip text is missing, should be shown.

Reproduce the behavior:

  1. Run the program on dev server (use command: npm run serve:dev).
  2. Load the example URL http://localhost:8081/examples/select.html and place mouse on any of the images.
  3. You should observe an object suggesting no tooltip text is available.

Browser, version, and operating system: