diff --git a/src/control/Control.Layers.js b/src/control/Control.Layers.js index 774fd577..186ea025 100644 --- a/src/control/Control.Layers.js +++ b/src/control/Control.Layers.js @@ -174,6 +174,8 @@ L.Control.Layers = L.Control.extend({ var container = obj.overlay ? this._overlaysList : this._baseLayersList; container.appendChild(label); + + return label; }, _onInputClick: function () {