From de0e8aecede887f3e10eabd93ca7e968cedfa3a8 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Tue, 3 Sep 2013 17:53:59 -0600 Subject: [PATCH] New extent structure in examples --- examples/navigation-controls.js | 6 ++---- examples/wms-custom-proj.js | 4 ++-- examples/wms-image-custom-proj.js | 4 ++-- examples/wms-image.js | 2 +- examples/wms-tiled.js | 2 +- examples/wmts-ign.js | 5 +++-- examples/wmts.js | 2 +- 7 files changed, 12 insertions(+), 13 deletions(-) diff --git a/examples/navigation-controls.js b/examples/navigation-controls.js index 4e88e5026d..f140950054 100644 --- a/examples/navigation-controls.js +++ b/examples/navigation-controls.js @@ -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] ] }) ]), diff --git a/examples/wms-custom-proj.js b/examples/wms-custom-proj.js index d354f92e73..3be2b52dea 100644 --- a/examples/wms-custom-proj.js +++ b/examples/wms-custom-proj.js @@ -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({ diff --git a/examples/wms-image-custom-proj.js b/examples/wms-image-custom-proj.js index 8857bf3af3..309c4ae126 100644 --- a/examples/wms-image-custom-proj.js +++ b/examples/wms-image-custom-proj.js @@ -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({ diff --git a/examples/wms-image.js b/examples/wms-image.js index 00fa91464d..9aabd4b1f2 100644 --- a/examples/wms-image.js +++ b/examples/wms-image.js @@ -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]] }) }) ]; diff --git a/examples/wms-tiled.js b/examples/wms-tiled.js index 70070656b2..99b749263d 100644 --- a/examples/wms-tiled.js +++ b/examples/wms-tiled.js @@ -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]] }) }) ]; diff --git a/examples/wmts-ign.js b/examples/wmts-ign.js index bd1dd80937..25d9016865 100644 --- a/examples/wmts-ign.js +++ b/examples/wmts-ign.js @@ -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); } }; diff --git a/examples/wmts.js b/examples/wmts.js index 055240d471..75b08d64c7 100644 --- a/examples/wmts.js +++ b/examples/wmts.js @@ -39,7 +39,7 @@ var map = new ol.Map({ matrixIds: matrixIds }), style: '_null', - extent: [-13682835, -13667473, 5204068, 5221690] + extent: [[-13682835, 5204068], [-13667473, 5221690]] }) }) ],