Only process loaded tiles

This commit is contained in:
ahocevar
2018-03-29 11:33:50 +02:00
parent 00e79903fe
commit dd6f4eef58
2 changed files with 7 additions and 6 deletions

View File

@@ -61,7 +61,7 @@ describe('ol.renderer.canvas.VectorTileLayer', function() {
feature2.setStyle(featureStyle);
const TileClass = function() {
VectorTile.apply(this, arguments);
this.setState('loaded');
this.setState(TileState.LOADED);
this.setFeatures([feature1, feature2, feature3]);
this.setProjection(getProjection('EPSG:4326'));
tileCallback(this);
@@ -292,8 +292,9 @@ describe('ol.renderer.canvas.VectorTileLayer', function() {
let layer, renderer, replayGroup;
const TileClass = function() {
VectorImageTile.apply(this, arguments);
this.setState('loaded');
this.setState(TileState.LOADED);
const sourceTile = new VectorTile([0, 0, 0]);
sourceTile.setState(TileState.LOADED);
sourceTile.setProjection(getProjection('EPSG:3857'));
sourceTile.getReplayGroup = function() {
return replayGroup;