Merge pull request #8914 from fredj/layer_className

Add new className property to ol/layer/Base
This commit is contained in:
Frédéric Junod
2018-11-14 16:23:56 +01:00
committed by GitHub
9 changed files with 120 additions and 2 deletions

View File

@@ -83,6 +83,7 @@ class CanvasVectorLayerRenderer extends CanvasLayerRenderer {
const canvas = this.context.canvas;
canvas.style.position = 'absolute';
canvas.className = this.getLayer().getClassName();
listen(labelCache, EventType.CLEAR, this.handleFontsChanged_, this);
}