add non-global projection wrapX text

This commit is contained in:
mike-000
2020-07-30 14:15:17 +01:00
committed by GitHub
parent 39334fa95d
commit dcdaf6ddc5

View File

@@ -1,4 +1,5 @@
import Circle from '../../../src/ol/geom/Circle.js';
import Projection from '../../../src/ol/proj/Projection.js';
import {
add as addCoordinate,
closestOnCircle,
@@ -271,5 +272,14 @@ describe('ol.coordinate', function () {
it('moves far off right coordinate to real world', function () {
expect(wrapX([1096, 48], projection)).to.eql([16, 48]);
});
const swiss = new Projection({
code: 'EPSG:21781',
units: 'm',
});
it('leaves non-global projection coordinates untouched', function () {
expect(wrapX([1096, 48], swiss)).to.eql([1096, 48]);
});
});
});