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:
parent
14d4320b3e
commit
944d197690
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user