Skip to content

Commit

Permalink
Fix filter loading on page start
Browse files Browse the repository at this point in the history
  • Loading branch information
cavenel committed Apr 27, 2023
1 parent 4ba2c64 commit 3ee6a46
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tissuumaps/static/js/utils/overlayUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,10 +495,13 @@ overlayUtils.addLayer = function(layer, i, visible) {
setTimeout(function(){$(loadingModal).modal("hide");}, 500);
}
showModal = false;
if (overlayUtils._collectionMode) {
overlayUtils.waitLayersReady().then(()=>{
filterUtils.setCompositeOperation();
overlayUtils.setCollectionMode();
}
filterUtils.getFilterItems();
if (overlayUtils._collectionMode) {
filterUtils.setCollectionMode();
}
})
},
error: function(i) {
if (loadingModal) {
Expand Down

0 comments on commit 3ee6a46

Please sign in to comment.