From d6714c9e8cd32f8509fd033bdcad30458ca474a2 Mon Sep 17 00:00:00 2001 From: jokd Date: Thu, 2 Nov 2023 08:03:13 +0100 Subject: [PATCH] Update search.js --- src/controls/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controls/search.js b/src/controls/search.js index a95f26f06..511d98596 100644 --- a/src/controls/search.js +++ b/src/controls/search.js @@ -324,7 +324,7 @@ const Search = function Search(options = {}) { return suggestionValue.toLowerCase().includes(userInput.toLowerCase()) ? suggestionValue : false; } }); - const mapEl = origo.api().getMap().getTargetElement(); + const mapEl = viewer.getMap().getTargetElement(); const listHeight = mapEl.offsetHeight / 2; awesomplete.ul.style.maxHeight = `${listHeight}px`; awesomplete.ul.style.overflowY = 'auto';