Use 'managed' instead of 'unmanaged' in LayerState

This commit is contained in:
Andreas Hocevar
2015-06-11 18:34:20 +02:00
parent 07d5211e30
commit 817370a65b
7 changed files with 19 additions and 19 deletions

View File

@@ -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);

View File

@@ -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)