Skip to content

Commit d83a65d

Browse files
prushforprushfor
prushfor
authored and
prushfor
committed
Set opacity property on layer- element when changing opacity from layer
control input
1 parent 9628b3d commit d83a65d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mapml/layers/MapMLLayer.js

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export var MapMLLayer = L.Layer.extend({
9898
},
9999
changeOpacity: function (opacity) {
100100
this._container.style.opacity = opacity;
101+
this._layerEl.opacity = opacity;
101102
if (this.opacityEl) this.opacityEl.value = opacity;
102103
},
103104
_changeExtentOpacity: function (e) {

0 commit comments

Comments
 (0)