mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Add tooltips for TGOs.
This commit is contained in:
@@ -166,9 +166,9 @@ function drawGroundObjects() {
|
||||
blueSamThreatLayer.clearLayers();
|
||||
redSamThreatLayer.clearLayers();
|
||||
game.groundObjects.forEach((tgo) => {
|
||||
L.marker(tgo.position, { icon: iconFor(tgo.blue) }).addTo(
|
||||
groundObjectsLayer
|
||||
);
|
||||
L.marker(tgo.position, { icon: iconFor(tgo.blue) })
|
||||
.bindTooltip(`${tgo.name}<br />${tgo.units.join("<br />")}`)
|
||||
.addTo(groundObjectsLayer);
|
||||
drawSamThreatsAt(tgo);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user