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
This commit is contained in:
crschmidt
2008-04-01 13:27:29 +00:00
parent d94e408084
commit 67aca311a9

View File

@@ -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) {