From 67aca311a99634cf4d6ff886fbb91aa305bb8a0f Mon Sep 17 00:00:00 2001 From: crschmidt Date: Tue, 1 Apr 2008 13:27:29 +0000 Subject: [PATCH] need to check if we have a center set or permalink won't work. git-svn-id: http://svn.openlayers.org/trunk/openlayers@6754 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- examples/spherical-mercator.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/spherical-mercator.html b/examples/spherical-mercator.html index 309456b3fa..efd304a7f4 100644 --- a/examples/spherical-mercator.html +++ b/examples/spherical-mercator.html @@ -121,7 +121,7 @@ map.addControl(new OpenLayers.Control.EditingToolbar(vector)); map.addControl(new OpenLayers.Control.Permalink()); map.addControl(new OpenLayers.Control.MousePosition()); - map.zoomToMaxExtent() + if (!map.getCenter()) {map.zoomToMaxExtent()} } function osm_getTileURL(bounds) {