Skip to content

Commit

Permalink
Always show infowindow
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Forsgren committed Jun 14, 2024
1 parent d556236 commit 3249508
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/selectionmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 3249508

Please sign in to comment.