Changing extent structure back to single array: [minX, minY, maxX, maxY]
This means we'll have to have a new structure and new methods for 3D envelopes.
This commit is contained in:
@@ -39,10 +39,10 @@ describe('ol.geom.LineString', function() {
|
||||
it('returns the bounding extent', function() {
|
||||
var line = new ol.geom.LineString([[10, 20], [20, 30], [30, 40]]);
|
||||
var bounds = line.getBounds();
|
||||
expect(bounds[0][0]).to.be(10);
|
||||
expect(bounds[1][0]).to.be(30);
|
||||
expect(bounds[0][1]).to.be(20);
|
||||
expect(bounds[1][1]).to.be(40);
|
||||
expect(bounds[0]).to.be(10);
|
||||
expect(bounds[2]).to.be(30);
|
||||
expect(bounds[1]).to.be(20);
|
||||
expect(bounds[3]).to.be(40);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user