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();
this._eastRect = this._drawRectangle(this._eastBounds);
this._southRect = this._drawRectangle(this._southBounds);
this._innerRect = this._drawRectangle(this.getBounds(), {
- fillColor: "transparent",
+ fillOpacity: 0,
stroke: true,
color: "white",
weight: 1,