Map: make options.center compatible with permalink
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user