Skip to content

Commit 727dcc7

Browse files
authored
Merge pull request #9 from jolyonralph/patch-1
Update L.Control.Opacity.js
2 parents c162301 + cfb646a commit 727dcc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/L.Control.Opacity.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ L.Control.Opacity = L.Control.extend({
117117
input.className = 'leaflet-control-layers-range';
118118
input.min = 0;
119119
input.max = 100;
120-
input.value = 100;
120+
input.value = obj.layer.options.opacity*100;
121121
} else {
122122
input = this._createRadioElement('leaflet-base-layers', checked);
123123
}

0 commit comments

Comments
 (0)