Merge pull request #13464 from ahocevar/projection-warning

Do not warn about coordinates when view projection is configured
This commit is contained in:
Andreas Hocevar
2022-03-10 20:13:33 +01:00
committed by GitHub
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);
});
});
});