show tooltip for position history markers

This commit is contained in:
liamcottle
2024-08-28 23:50:42 +12:00
parent 7f30f2c7f9
commit dcbde41fc9

View File

@ -3823,7 +3823,7 @@
// create position history marker
const marker = L.marker([positionHistory.latitude, longitude],{
icon: iconPositionHistory,
}).bindPopup(tooltip).on('click', function(event) {
}).bindTooltip(tooltip).bindPopup(tooltip).on('click', function(event) {
// close tooltip on click to prevent tooltip and popup showing at same time
event.target.closeTooltip();
});