add non-global projection wrapX text
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import Circle from '../../../src/ol/geom/Circle.js';
|
import Circle from '../../../src/ol/geom/Circle.js';
|
||||||
|
import Projection from '../../../src/ol/proj/Projection.js';
|
||||||
import {
|
import {
|
||||||
add as addCoordinate,
|
add as addCoordinate,
|
||||||
closestOnCircle,
|
closestOnCircle,
|
||||||
@@ -271,5 +272,14 @@ describe('ol.coordinate', function () {
|
|||||||
it('moves far off right coordinate to real world', function () {
|
it('moves far off right coordinate to real world', function () {
|
||||||
expect(wrapX([1096, 48], projection)).to.eql([16, 48]);
|
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]);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user