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
+2 -2
View File
@@ -11,8 +11,8 @@ var map = new ol.Map({
controls: ol.control.defaults().extend([
new ol.control.ZoomToExtent({
extent: [
[813079.7791264898, 5929220.284081122],
[848966.9639063801, 5936863.986909639]
813079.7791264898, 5929220.284081122,
848966.9639063801, 5936863.986909639
]
})
]),
+2 -2
View File
@@ -12,10 +12,10 @@ goog.require('ol.source.TileWMS');
var projection = ol.proj.configureProj4jsProjection({
code: 'EPSG:21781',
extent: [[485869.5728, 76443.1884], [837076.5648, 299941.7864]]
extent: [485869.5728, 76443.1884, 837076.5648, 299941.7864]
});
var extent = [[420000, 30000], [900000, 350000]];
var extent = [420000, 30000, 900000, 350000];
var layers = [
new ol.layer.Tile({
source: new ol.source.TileWMS({
+2 -2
View File
@@ -9,10 +9,10 @@ goog.require('ol.source.ImageWMS');
var projection = ol.proj.configureProj4jsProjection({
code: 'EPSG:21781',
extent: [[485869.5728, 76443.1884], [837076.5648, 299941.7864]]
extent: [485869.5728, 76443.1884, 837076.5648, 299941.7864]
});
var extent = [[420000, 30000], [900000, 350000]];
var extent = [420000, 30000, 900000, 350000];
var layers = [
new ol.layer.Image({
source: new ol.source.ImageWMS({
+1 -1
View File
@@ -15,7 +15,7 @@ var layers = [
source: new ol.source.ImageWMS({
url: 'http://demo.opengeo.org/geoserver/wms',
params: {'LAYERS': 'topp:states'},
extent: [[-13884991, 2870341], [-7455066, 6338219]]
extent: [-13884991, 2870341, -7455066, 6338219]
})
})
];
+1 -1
View File
@@ -14,7 +14,7 @@ var layers = [
source: new ol.source.TileWMS({
url: 'http://demo.opengeo.org/geoserver/wms',
params: {'LAYERS': 'topp:states', 'TILED': true},
extent: [[-13884991, 2870341], [-7455066, 6338219]]
extent: [-13884991, 2870341, -7455066, 6338219]
})
})
];
+2 -2
View File
@@ -76,8 +76,8 @@ xhr.onload = function() {
var view = new ol.View2D();
view.fitExtent([
[257596.65942095537, 6250898.984085131],
[262082.55751844167, 6251854.446938695]], map.getSize());
257596.65942095537, 6250898.984085131,
262082.55751844167, 6251854.446938695], map.getSize());
map.setView(view);
}
};
+1 -1
View File
@@ -39,7 +39,7 @@ var map = new ol.Map({
matrixIds: matrixIds
}),
style: '_null',
extent: [[-13682835, 5204068], [-13667473, 5221690]]
extent: [-13682835, 5204068, -13667473, 5221690]
})
})
],