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:
Tim Schaub
2013-09-15 00:15:24 -06:00
parent de0e8aeced
commit e806f51b3d
63 changed files with 379 additions and 392 deletions
+4 -4
View File
@@ -202,7 +202,7 @@ describe('ol.parser.GeoJSON', function() {
var firstGeom = first.getGeometry();
expect(firstGeom).to.be.a(ol.geom.Polygon);
expect(ol.extent.equals(firstGeom.getBounds(),
[[60.52843, 29.318572], [75.158028, 38.486282]]))
[60.52843, 29.318572, 75.158028, 38.486282]))
.to.be(true);
var last = result[178];
@@ -212,7 +212,7 @@ describe('ol.parser.GeoJSON', function() {
var lastGeom = last.getGeometry();
expect(lastGeom).to.be.a(ol.geom.Polygon);
expect(ol.extent.equals(lastGeom.getBounds(),
[[25.264226, -22.271612], [32.849861, -15.507787]]))
[25.264226, -22.271612, 32.849861, -15.507787]))
.to.be(true);
done();
});
@@ -251,7 +251,7 @@ describe('ol.parser.GeoJSON', function() {
var firstGeom = first.getGeometry();
expect(firstGeom).to.be.a(ol.geom.Polygon);
expect(ol.extent.equals(firstGeom.getBounds(),
[[60.52843, 29.318572], [75.158028, 38.486282]]))
[60.52843, 29.318572, 75.158028, 38.486282]))
.to.be(true);
var last = result[178];
@@ -260,7 +260,7 @@ describe('ol.parser.GeoJSON', function() {
var lastGeom = last.getGeometry();
expect(lastGeom).to.be.a(ol.geom.Polygon);
expect(ol.extent.equals(lastGeom.getBounds(),
[[25.264226, -22.271612], [32.849861, -15.507787]]))
[25.264226, -22.271612, 32.849861, -15.507787]))
.to.be(true);
});
});