Skip to content

Commit

Permalink
Always show infowindow (#2046)
Browse files Browse the repository at this point in the history
Co-authored-by: Stefan Forsgren <stefan.forsgren@xlent.se>
  • Loading branch information
steff-o and Stefan Forsgren authored Nov 13, 2024
1 parent 5944326 commit 4191a8b
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 4191a8b

Please sign in to comment.