let areas, lines etc have tooltip

This commit is contained in:
Dave Conway-Jones 2023-10-13 11:22:29 +01:00
parent 0ddb5aadd7
commit 4b4a6ef94e
No known key found for this signature in database
GPG Key ID: 1DDB0E91A28C2643

View File

@ -1708,6 +1708,7 @@ function setMarker(data) {
if (data.popup) { words = words + "<br/>" + data.popup; } if (data.popup) { words = words + "<br/>" + data.popup; }
polygons[data.name].bindPopup(words, {autoClose:false, closeButton:true, closeOnClick:false, minWidth:200}); polygons[data.name].bindPopup(words, {autoClose:false, closeButton:true, closeOnClick:false, minWidth:200});
} }
if (data.hasOwnProperty("tooltip")) { polygons[data.name].bindTooltip(data.tooltip); }
//polygons[data.name] = rightmenu(polygons[data.name]); // DCJ Investigate //polygons[data.name] = rightmenu(polygons[data.name]); // DCJ Investigate
layers[lay].addLayer(polygons[data.name]); layers[lay].addLayer(polygons[data.name]);
} }