onAdd: function(map) {
this._map = map;
- this._layer = new L.LayerGroup();
if (this.options.enableButton || this.options.adjustButton) {
this._initializeButtonContainer();
return;
}
+ this._layer = new L.LayerGroup();
+
// Calculate filter bounds
this._calculateBounds();