Skip to content

Commit 88d691e

Browse files
committed
fix logic when removing a layer
1 parent 7137d77 commit 88d691e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ol-loadingpanel.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ export default class LoadingPanel extends Control {
341341
var l = layers[layers.length-1];
342342
this_.show();
343343
this_.registerLayerLoadEvents_(l);
344-
}else{
344+
}else if(count < this_.layerCount){
345345
this_.hide();
346346
this_.layerCount -= 1;
347347
}

0 commit comments

Comments
 (0)