From 1f3a64d706a19e8c1ec2ca6597e9830b26334ced Mon Sep 17 00:00:00 2001 From: ahocevar Date: Mon, 28 Feb 2011 17:11:08 +0000 Subject: [PATCH] use wgs84 maxExtent when sphericalMercator is not set git-svn-id: http://svn.openlayers.org/trunk/openlayers@11583 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- examples/bing.html | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/examples/bing.html b/examples/bing.html index ca932e3a4d..59c7df7d08 100644 --- a/examples/bing.html +++ b/examples/bing.html @@ -17,12 +17,10 @@ // setting restrictedExtent so that we can use the // VirtualEarth-layers, see e.g. // http://dev.openlayers.org/apidocs/files/OpenLayers/Layer/VirtualEarth-js.html - var restrictedExtent = new OpenLayers.Bounds(-20037508, -20037508, - 20037508, 20037508); + var restrictedExtent = new OpenLayers.Bounds(-180, -90, + 180, 90); - map = new OpenLayers.Map("map", { - restrictedExtent: restrictedExtent - }); + map = new OpenLayers.Map("map"); map.addControl(new OpenLayers.Control.LayerSwitcher());