use wgs84 maxExtent when sphericalMercator is not set
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11583 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -17,12 +17,10 @@
|
|||||||
// setting restrictedExtent so that we can use the
|
// setting restrictedExtent so that we can use the
|
||||||
// VirtualEarth-layers, see e.g.
|
// VirtualEarth-layers, see e.g.
|
||||||
// http://dev.openlayers.org/apidocs/files/OpenLayers/Layer/VirtualEarth-js.html
|
// http://dev.openlayers.org/apidocs/files/OpenLayers/Layer/VirtualEarth-js.html
|
||||||
var restrictedExtent = new OpenLayers.Bounds(-20037508, -20037508,
|
var restrictedExtent = new OpenLayers.Bounds(-180, -90,
|
||||||
20037508, 20037508);
|
180, 90);
|
||||||
|
|
||||||
map = new OpenLayers.Map("map", {
|
map = new OpenLayers.Map("map");
|
||||||
restrictedExtent: restrictedExtent
|
|
||||||
});
|
|
||||||
|
|
||||||
map.addControl(new OpenLayers.Control.LayerSwitcher());
|
map.addControl(new OpenLayers.Control.LayerSwitcher());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user