From fb3499312ac0d0bfcbcd2a8e48fa3aa6b041b7df Mon Sep 17 00:00:00 2001 From: jokd Date: Mon, 11 Sep 2023 10:42:54 +0200 Subject: [PATCH] Open link in modal --- src/multiselect.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/multiselect.js b/src/multiselect.js index 5a4bb26..9df5080 100644 --- a/src/multiselect.js +++ b/src/multiselect.js @@ -740,6 +740,10 @@ const Multiselect = function Multiselect(options = {}) { } else if (result.length > 1) { selectionManager.addItems(result); } + const modalLinks = document.getElementsByClassName('o-identify-link-modal'); + for (let i = 0; i < modalLinks.length; i += 1) { + viewer.getFeatureinfo().addLinkListener(modalLinks[i]); + } }); } return false;