From 53a28118078089466248b6daf410f825c851d763 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Fri, 14 Sep 2007 02:47:08 +0000 Subject: [PATCH] minor cleanups to zoom levels example git-svn-id: http://svn.openlayers.org/trunk/openlayers@4295 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- examples/zoomLevels.html | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/examples/zoomLevels.html b/examples/zoomLevels.html index c204d2738e..0468b80e4d 100644 --- a/examples/zoomLevels.html +++ b/examples/zoomLevels.html @@ -17,17 +17,19 @@ function init(){ var options = { -// resolutions: [1.40625,0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.00137329101], -// scales: [50000000, 10000000], -// maxResolution: 0.17578125, -// minResolution: 0.0439453125, -// maxScale: 10000000, -// minScale: 50000000, + +// various ways of specifying similar things +// resolutions: [1.40625,0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.00137329101], +// scales: [50000000, 10000000], +// maxResolution: 0.17578125, +// minResolution: 0.0439453125, +// maxScale: 10000000, +// minScale: 50000000, +// numZoomLevels: 5, minResolution: "auto", minExtent: new OpenLayers.Bounds(-1, -1, 1, 1), maxResolution: "auto", - maxExtent: new OpenLayers.Bounds(-180, -90, 90, 180), -// numZoomLevels: 5, + maxExtent: new OpenLayers.Bounds(-180, -90, 180, 90), controls: [new OpenLayers.Control.MouseDefaults()] };