Parse the opacity from style as float

This commit is contained in:
Frederic Junod
2019-01-22 12:48:14 +01:00
parent af8a22d34d
commit 8dbe8bc34e
5 changed files with 5 additions and 5 deletions

View File

@@ -508,7 +508,7 @@ class CanvasVectorTileLayerRenderer extends CanvasTileLayerRenderer {
}
const opacity = layerState.opacity;
if (opacity !== canvas.style.opacity) {
if (opacity !== parseFloat(canvas.style.opacity)) {
canvas.style.opacity = opacity;
}