Skip to content

Commit

Permalink
fix logic when removing a layer
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Jun 21, 2021
1 parent 7137d77 commit 88d691e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ol-loadingpanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ export default class LoadingPanel extends Control {
var l = layers[layers.length-1];
this_.show();
this_.registerLayerLoadEvents_(l);
}else{
}else if(count < this_.layerCount){
this_.hide();
this_.layerCount -= 1;
}
Expand Down

0 comments on commit 88d691e

Please sign in to comment.