Connect CP/TGO package fragging dialogs.

This commit is contained in:
Dan Albert
2021-05-13 01:05:15 -07:00
parent dd75078019
commit 1a65b1affb
2 changed files with 23 additions and 6 deletions

View File

@@ -128,7 +128,10 @@ function drawControlPoints() {
permanent: zoom >= SHOW_BASE_NAME_AT_ZOOM,
})
.on("click", function () {
cp.open_base_menu();
cp.showInfoDialog();
})
.on("contextmenu", function () {
cp.showPackageDialog();
})
.addTo(controlPointsLayer);
});
@@ -169,7 +172,10 @@ function drawGroundObjects() {
L.marker(tgo.position, { icon: iconFor(tgo.blue) })
.bindTooltip(`${tgo.name}<br />${tgo.units.join("<br />")}`)
.on("click", function () {
tgo.open_dialog();
tgo.showInfoDialog();
})
.on("contextmenu", function () {
tgo.showPackageDialog();
})
.addTo(groundObjectsLayer);
drawSamThreatsAt(tgo);