Return created HTML element in Control.Layers._addItem

Goal is to make easier and DRYer to customize layer HTML item
when extending Control.Layers class
This commit is contained in:
Yohan Boniface 2012-11-21 16:06:20 +01:00
parent 14d4320b3e
commit 944d197690

View File

@ -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 () {