From e05652fc37e34b15914676685836c69065ec6ed1 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Sat, 8 Jun 2024 15:40:50 +1200 Subject: [PATCH] show node details when direct linking to a node without a position --- src/public/index.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/public/index.html b/src/public/index.html index e428d85..a7ac65a 100644 --- a/src/public/index.html +++ b/src/public/index.html @@ -3143,7 +3143,15 @@ // go to node id if provided if(goToNodeId){ - goToNode(goToNodeId, false, zoom); + + // go to node + if(window.goToNode(goToNodeId, false, zoom)){ + return; + } + + // fallback to showing node details since we can't go to the node + window.showNodeDetails(goToNodeId); + } });