Skip to content

Commit

Permalink
Update infowindow.js
Browse files Browse the repository at this point in the history
  • Loading branch information
huggla authored Oct 21, 2024
1 parent eb61717 commit e065f53
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/infowindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ let activeSelectionGroup;
let selectionManager;
let viewer;
let infowindowOptions;
const initialMinimizeButtonIcon = '#ic_close_fullscreen_24px';
const hiddenMinimizeButtonIcon = '#ic_open_in_full_24px';
const minimizeButton = createMinimizeButton();
let initialMinimizeButtonIcon;
let hiddenMinimizeButtonIcon;
let minimizeButton;

function createSvgElement(id, className) {
const svgContainer = document.createElement('div');
Expand Down Expand Up @@ -169,6 +169,7 @@ function render(viewerId) {
urvalTextNodeContainer.appendChild(urvalTextNode);
urvalContainer.appendChild(urvalTextNodeContainer);
const closeButton = createCloseButton();
minimizeButton = createMinimizeButton();
urvalContainer.appendChild(dom.html(minimizeButton.render()));
urvalContainer.appendChild(dom.html(closeButton.render()));
urvalContainer.appendChild(urvalListContainer);
Expand Down Expand Up @@ -481,6 +482,8 @@ function init(options) {
urvalElements = new Map();
expandableContents = new Map();
footerContainers = new Map();
initialMinimizeButtonIcon = '#ic_close_fullscreen_24px';
hiddenMinimizeButtonIcon = '#ic_open_in_full_24px';

render(options.viewer.getId());

Expand Down

0 comments on commit e065f53

Please sign in to comment.