Better code indentation

This commit is contained in:
Frederic Junod
2018-02-14 16:57:30 +01:00
parent 219413f324
commit 577816ca4a
2 changed files with 15 additions and 22 deletions
+8 -10
View File
@@ -178,16 +178,14 @@ Layer.prototype.setMap = function(map) {
this.mapRenderKey_ = null;
}
if (map) {
this.mapPrecomposeKey_ = listen(
map, RenderEventType.PRECOMPOSE, function(evt) {
const layerState = this.getLayerState();
layerState.managed = false;
layerState.zIndex = Infinity;
evt.frameState.layerStatesArray.push(layerState);
evt.frameState.layerStates[getUid(this)] = layerState;
}, this);
this.mapRenderKey_ = listen(
this, EventType.CHANGE, map.render, map);
this.mapPrecomposeKey_ = listen(map, RenderEventType.PRECOMPOSE, function(evt) {
const layerState = this.getLayerState();
layerState.managed = false;
layerState.zIndex = Infinity;
evt.frameState.layerStatesArray.push(layerState);
evt.frameState.layerStates[getUid(this)] = layerState;
}, this);
this.mapRenderKey_ = listen(this, EventType.CHANGE, map.render, map);
this.changed();
}
};