Also update zoom property

This commit is contained in:
Andreas Hocevar
2021-12-16 09:54:06 +01:00
parent f6cb4c296d
commit 628e5c1c90
2 changed files with 10 additions and 7 deletions

View File

@@ -623,11 +623,15 @@ describe('ol/View', function () {
minZoom: 2,
zoom: 10,
});
const options = view.getProperties();
view.setZoom(8);
view.setCenter([1, 2]);
view.setRotation(1);
expect(options.center).to.eql([0, 0]);
const options = view.getProperties();
expect(options.minZoom).to.eql(2);
expect(options.zoom).to.eql(10);
expect(options.zoom).to.eql(8);
expect(options.center).to.eql([1, 2]);
expect(options.rotation).to.eql(1);
});
it('applies the current zoom', function () {