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
+3 -3
View File
@@ -410,7 +410,7 @@ goog.inherits(ol.proj.EPSG2056, ol.proj.CH);
* @type {ol.Extent}
*/
ol.proj.EPSG2056.EXTENT =
[[2485869.5728, 1076443.1884], [2837076.5648, 1299941.7864]];
[2485869.5728, 1076443.1884, 2837076.5648, 1299941.7864];
/**
@@ -448,8 +448,8 @@ goog.inherits(ol.proj.EPSG21781, ol.proj.CH);
* @type {ol.Extent}
*/
ol.proj.EPSG21781.EXTENT = [
[485869.5728, 76443.1884],
[837076.5648, 299941.7864]
485869.5728, 76443.1884,
837076.5648, 299941.7864
];
+2 -2
View File
@@ -44,8 +44,8 @@ ol.proj.EPSG3857.HALF_SIZE = Math.PI * ol.proj.EPSG3857.RADIUS;
* @type {ol.Extent}
*/
ol.proj.EPSG3857.EXTENT = [
[-ol.proj.EPSG3857.HALF_SIZE, -ol.proj.EPSG3857.HALF_SIZE],
[ol.proj.EPSG3857.HALF_SIZE, ol.proj.EPSG3857.HALF_SIZE]
-ol.proj.EPSG3857.HALF_SIZE, -ol.proj.EPSG3857.HALF_SIZE,
ol.proj.EPSG3857.HALF_SIZE, ol.proj.EPSG3857.HALF_SIZE
];
+1 -1
View File
@@ -30,7 +30,7 @@ goog.inherits(ol.proj.EPSG4326, ol.Projection);
* @const
* @type {ol.Extent}
*/
ol.proj.EPSG4326.EXTENT = [[-180, -90], [180, 90]];
ol.proj.EPSG4326.EXTENT = [-180, -90, 180, 90];
/**