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.
2 parents 8122c21 + abe0569 commit 56f4945Copy full SHA for 56f4945
src/plots/mapbox/layers.js
@@ -246,7 +246,8 @@ function convertOpts(opts) {
246
break;
247
case 'raster':
248
Lib.extendFlat(paint, {
249
- 'raster-fade-duration': 0
+ 'raster-fade-duration': 0,
250
+ 'raster-opacity': opts.opacity
251
});
252
253
}
test/image/baselines/mapbox_layers.png
-25.3 KB
test/image/mocks/mapbox_layers.json
@@ -574,7 +574,8 @@
574
[-71.516, 37.936],
575
[-80.425, 37.936]
576
],
577
- "source": "https://docs.mapbox.com/mapbox-gl-js/assets/radar.gif"
+ "source": "https://docs.mapbox.com/mapbox-gl-js/assets/radar.gif",
578
+ "opacity": 0.3
579
580
]
581
},
0 commit comments