diff --git a/src/map/map.js b/src/map/map.js index b33f780..cc85c8d 100644 --- a/src/map/map.js +++ b/src/map/map.js @@ -99,10 +99,10 @@ function dismissPopup(hideMarker) { sidebarContent.onclick = dismissPopup; -function onNodeClick(ev, node, elem) { +function onNodeClick(ev, node, clicked) { console.log('b') if (opened != null) return; - const rect = elem.getBoundingClientRect(); + const rect = clicked.getBoundingClientRect(); nodesElement.style.opacity = 1; @@ -125,7 +125,7 @@ function onNodeClick(ev, node, elem) { ele.style.height = window.innerHeight / 3 + 'px'; sidebarContent.style.backgroundColor = "#111"; - opened = [ele, elem, node]; + opened = [ele, clicked, node]; ev.stopPropagation(); }