We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5105086 commit 3f56b0cCopy full SHA for 3f56b0c
src/layer.js
@@ -48,7 +48,7 @@ export class MapLayer extends HTMLElement {
48
}
49
50
get opacity() {
51
- return this._opacity;
+ return this._opacity ?? this.getAttribute('opacity');
52
53
54
set opacity(val) {
0 commit comments