Enqueue tiles at the next resolution in the animation

This commit is contained in:
Tim Schaub
2021-09-22 22:10:18 +00:00
parent 2435321133
commit 4dc66ef8e3
4 changed files with 93 additions and 28 deletions

View File

@@ -12,7 +12,7 @@ import ViewHint from '../../../../src/ol/ViewHint.js';
import {clearUserProjection, useGeographic} from '../../../../src/ol/proj.js';
import {createEmpty} from '../../../../src/ol/extent.js';
describe('ol.View', function () {
describe('ol/View', function () {
describe('constructor (defaults)', function () {
let view;
@@ -688,13 +688,15 @@ describe('ol.View', function () {
},
function (complete) {
expect(complete).to.be(true);
expect(isNaN(view.nextResolution_)).to.be(true);
expect(view.getCenter()).to.eql([0, 0]);
expect(view.getZoom()).to.eql(4);
expect(view.getAnimating()).to.eql(false);
expect(view.getAnimating()).to.be(false);
done();
}
);
expect(view.getAnimating()).to.eql(true);
expect(isNaN(view.nextResolution_)).to.be(false);
});
it('allows duration to be zero', function (done) {