Skip to content

Commit

Permalink
let areas, lines etc have tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
dceejay committed Oct 13, 2023
1 parent 0ddb5aa commit 4b4a6ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions worldmap/worldmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1708,6 +1708,7 @@ function setMarker(data) {
if (data.popup) { words = words + "<br/>" + data.popup; }
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
layers[lay].addLayer(polygons[data.name]);
}
Expand Down

0 comments on commit 4b4a6ef

Please sign in to comment.