loleaflet: set opacity 0.5 to a group element

Change-Id: I2f3e7f275e0b217041fd2e4c83a1360cdced738a
This commit is contained in:
Henry Castro 2018-11-29 09:44:16 -04:00 committed by Jan Holesovsky
parent d2a4e1677f
commit ef52ba01a4

View file

@ -58,6 +58,7 @@ L.SVGGroup = L.Layer.extend({
if (this._path && this._rect._path) {
this._rect._map = this._map;
this._rect._renderer = this._renderer;
L.DomUtil.addClass(this._path, 'leaflet-control-buttons-disabled');
this._path.appendChild(this._rect._path);
this.addInteractiveTarget(this._rect._path);
}