Handle vector layer opacity
This commit is contained in:
@@ -85,6 +85,7 @@ ol.renderer.canvas.VectorLayer.prototype.composeFrame =
|
|||||||
-viewCenter[1],
|
-viewCenter[1],
|
||||||
0);
|
0);
|
||||||
|
|
||||||
|
context.globalAlpha = layerState.opacity;
|
||||||
batchGroup.draw(context, transform);
|
batchGroup.draw(context, transform);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user