Use source tile resolution for pixel buffer

This commit is contained in:
ahocevar
2019-08-20 16:26:24 +02:00
parent a8b5dfa981
commit 92931c336c
2 changed files with 11 additions and 2 deletions

View File

@@ -109,6 +109,15 @@ describe('ol.source.VectorTile', function() {
expect(tile.getState()).to.be(TileState.IDLE);
});
it('creates non-empty tiles for overzoomed resolutions', function() {
const source = new VectorTileSource({
maxZoom: 16
});
const tile = source.getTile(24, 9119385, 5820434, 1, source.getProjection());
tile.load();
expect(tile.getState()).to.be(TileState.LOADING);
});
it('creates new tile when source key changes', function() {
source.setKey('key1');
const tile1 = source.getTile(0, 0, 0, 1, getProjection('EPSG:3857'));