From 3249508f1f36c60d35f4dd663d18d854eeb2769a Mon Sep 17 00:00:00 2001 From: Stefan Forsgren Date: Fri, 14 Jun 2024 10:52:25 +0200 Subject: [PATCH] Always show infowindow --- src/selectionmanager.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/selectionmanager.js b/src/selectionmanager.js index ce3f34b08..70adad642 100644 --- a/src/selectionmanager.js +++ b/src/selectionmanager.js @@ -32,7 +32,6 @@ const Selectionmanager = function Selectionmanager(options = {}) { let highlightedFeatures = []; const multiselectStyleOptions = options.multiSelectionStyles || styleTypes.getStyle('multiselection'); - const isInfowindow = options.infowindow === 'infowindow' || false; const infowindowManager = options.infowindowOptions && options.infowindowOptions.listLayout ? infowindowManagerV2 : infowindowManagerV1; function alreadyExists(item) { @@ -295,11 +294,7 @@ const Selectionmanager = function Selectionmanager(options = {}) { urval.get(selectionGroup).addFeature(item.getFeature()); infowindow.createListElement(item); - - if (isInfowindow) { - infowindow.show(); - } - + infowindow.show(); const sum = urval.get(selectionGroup).getFeatures().length; infowindow.updateUrvalElementText(selectionGroup, selectionGroupTitle, sum); const aggregationstring = calculateGroupAggregations(selectionGroup);