Do not warn about coordinates when view projection is configured

This commit is contained in:
Andreas Hocevar
2022-03-10 16:52:49 +01:00
parent 7d9cf83efe
commit 5c7b9124cc
3 changed files with 12 additions and 4 deletions

View File

@@ -930,5 +930,13 @@ describe('ol/proj.js', function () {
view.setCenter([15, 47]);
expect(callCount).to.be(0);
});
it('is not shown when view projection is configured', function () {
const view = new View({
projection: 'EPSG:4326',
center: [16, 48],
});
view.setCenter([15, 47]);
expect(callCount).to.be(0);
});
});
});