Skip to content

Commit

Permalink
Merge pull request #25 from origo-map/open-in-modal
Browse files Browse the repository at this point in the history
Open link in modal
  • Loading branch information
jokd authored Sep 20, 2023
2 parents dea2440 + fb34993 commit ec630dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/multiselect.js
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,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;
Expand Down

0 comments on commit ec630dc

Please sign in to comment.