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