Add new className property to ol/layer/Base

This commit is contained in:
Frederic Junod
2018-11-12 18:27:18 +01:00
parent 647421f07b
commit 22eb96637f
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);
}