Remove 'layerStates' property from the FrameState

This commit is contained in:
Frederic Junod
2018-12-18 09:06:41 +01:00
parent 348186e2f8
commit 5195adea85
7 changed files with 26 additions and 38 deletions
@@ -1,4 +1,3 @@
import {getUid} from '../../../../../src/ol/util.js';
import Feature from '../../../../../src/ol/Feature.js';
import Map from '../../../../../src/ol/Map.js';
import View from '../../../../../src/ol/View.js';
@@ -203,14 +202,13 @@ describe('ol.renderer.canvas.VectorLayer', function() {
const spy = sinon.spy();
const coordinate = [0, 0];
const frameState = {
layerStates: {},
layerStatesArray: [{}],
skippedFeatureUids: {},
viewState: {
resolution: 1,
rotation: 0
}
};
frameState.layerStates[getUid(layer)] = {};
renderer.forEachFeatureAtCoordinate(
coordinate, frameState, 0, spy, undefined);
expect(spy.callCount).to.be(1);