diff --git a/lib/OpenLayers/Map.js b/lib/OpenLayers/Map.js index 96744b4dd2..016c4110b8 100644 --- a/lib/OpenLayers/Map.js +++ b/lib/OpenLayers/Map.js @@ -628,9 +628,9 @@ OpenLayers.Map = OpenLayers.Class({ * be properly set below. */ delete this.center; - this.addLayers(options.layers); + this.addLayers(options.layers); // set center (and optionally zoom) - if (options.center) { + if (options.center && !this.getCenter()) { // zoom can be undefined here this.setCenter(options.center, options.zoom); }