Use 'managed' instead of 'unmanaged' in LayerState
This commit is contained in:
@@ -163,7 +163,7 @@ ol.layer.Layer.prototype.setMap = function(map) {
|
||||
this.mapPrecomposeKey_ = goog.events.listen(
|
||||
map, ol.render.EventType.PRECOMPOSE, function(evt) {
|
||||
var layerState = this.getLayerState();
|
||||
layerState.unmanaged = true;
|
||||
layerState.managed = false;
|
||||
evt.frameState.layerStatesArray.push(layerState);
|
||||
evt.frameState.layerStates[goog.getUid(this)] = layerState;
|
||||
}, false, this);
|
||||
|
||||
@@ -35,7 +35,7 @@ ol.layer.LayerProperty = {
|
||||
* saturation: number,
|
||||
* sourceState: ol.source.State,
|
||||
* visible: boolean,
|
||||
* unmanaged: boolean,
|
||||
* managed: boolean,
|
||||
* extent: (ol.Extent|undefined),
|
||||
* maxResolution: number,
|
||||
* minResolution: number}}
|
||||
@@ -143,7 +143,7 @@ ol.layer.Base.prototype.getLayerState = function() {
|
||||
saturation: Math.max(saturation, 0),
|
||||
sourceState: sourceState,
|
||||
visible: visible,
|
||||
unmanaged: false,
|
||||
managed: true,
|
||||
extent: extent,
|
||||
maxResolution: maxResolution,
|
||||
minResolution: Math.max(minResolution, 0)
|
||||
|
||||
Reference in New Issue
Block a user