mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-14 06:16:46 +01:00
Fix problem in UI when layer control disabled (showlayercontrol=false)
This commit is contained in:
parent
9c32d7168e
commit
02091acd45
@ -812,7 +812,7 @@ DynMap.prototype = {
|
||||
else
|
||||
return ((a.name < b.name) ? -1 : ((a.name > b.name) ? 1 : 0));
|
||||
});
|
||||
if(me.options.showlayercontrol) {
|
||||
if(me.options.showlayercontrol != "false") {
|
||||
for(i = 0; i < me.layersetlist.length; i++) {
|
||||
me.layercontrol.removeLayer(me.layersetlist[i].layer);
|
||||
}
|
||||
@ -827,7 +827,7 @@ DynMap.prototype = {
|
||||
for(i = 0; i < me.layersetlist.length; i++) {
|
||||
if(me.layersetlist[i].layer === layer) {
|
||||
me.layersetlist.splice(i, 1);
|
||||
if(me.options.showlayercontrol)
|
||||
if(me.options.showlayercontrol != "false")
|
||||
me.layercontrol.removeLayer(layer);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user