[OpenLayers-Commits] r11583 - trunk/openlayers/examples

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Mon Feb 28 12:11:09 EST 2011


Author: ahocevar
Date: 2011-02-28 09:11:08 -0800 (Mon, 28 Feb 2011)
New Revision: 11583

Modified:
   trunk/openlayers/examples/bing.html
Log:
use wgs84 maxExtent when sphericalMercator is not set


Modified: trunk/openlayers/examples/bing.html
===================================================================
--- trunk/openlayers/examples/bing.html	2011-02-28 17:00:13 UTC (rev 11582)
+++ trunk/openlayers/examples/bing.html	2011-02-28 17:11:08 UTC (rev 11583)
@@ -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());
 



More information about the Commits mailing list