diff --git a/index.html b/index.html index 5728d055..836f729f 100644 --- a/index.html +++ b/index.html @@ -3564,7 +3564,7 @@ `; @@ -75,6 +77,20 @@ function overviewMarkers() { highlightElement(document.getElementById(`marker${i}`), 2); } + function pinMarker(el, i) { + const marker = pack.markers.find(marker => marker.i === i); + if (marker.pinned) { + delete marker.pinned; + const anyPinned = pack.markers.some(marker => marker.pinned); + if (!anyPinned) markerGroup.removeAttribute("pinned"); + } else { + marker.pinned = true; + markerGroup.setAttribute("pinned", 1); + } + el.classList.toggle("inactive"); + drawMarkers(); + } + function toggleLockStatus(el, i) { const marker = pack.markers.find(marker => marker.i === i); if (marker.lock) {