Handle layer removal on shared containers

This commit is contained in:
ahocevar
2019-06-02 13:45:11 +02:00
parent 05d8517686
commit 6123be726a
7 changed files with 48 additions and 1 deletions
+2 -1
View File
@@ -93,7 +93,8 @@ class BaseLayer extends BaseObject {
/** @type {import("./Layer.js").State} */
const state = this.state_ || /** @type {?} */ ({
layer: this,
managed: opt_managed === undefined ? true : opt_managed
managed: opt_managed === undefined ? true : opt_managed,
hasOverlay: false
});
state.opacity = clamp(Math.round(this.getOpacity() * 100) / 100, 0, 1);
state.sourceState = this.getSourceState();
+1
View File
@@ -45,6 +45,7 @@ import SourceState from '../source/State.js';
* @property {SourceState} sourceState
* @property {boolean} visible
* @property {boolean} managed
* @property {boolean} hasOverlay Set by the renderer when an overlay for points and text is used.
* @property {import("../extent.js").Extent} [extent]
* @property {number} zIndex
* @property {number} maxResolution