commit 2bb03aaf77a0f7a2688e3dcb0a848d00c7645b4f
parent b6895a6bc8f92c31bc5782cad4d81c2dd23f985c
Author: Sergej Orlov <wladimirych@gmail.com>
Date: Thu, 5 Jul 2018 00:30:03 +0300
[layers config] show only one window of custom layer and layers select
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib/leaflet.control.layers.configure/index.js b/src/lib/leaflet.control.layers.configure/index.js
@@ -121,7 +121,7 @@ function enableConfig(control, layers) {
},
showLayersSelectWindow: function() {
- if (this._configWindowVisible) {
+ if (this._configWindowVisible || this._customLayerWindow) {
return;
}
[...this._allLayers, ...this._customLayers()].forEach(layer => layer.checked(layer.enabled));
@@ -242,7 +242,7 @@ function enableConfig(control, layers) {
},
showCustomLayerForm: function(buttons, fieldValues) {
- if (this._customLayerWindow) {
+ if (this._customLayerWindow || this._configWindowVisible) {
return;
}
this._customLayerWindow =