add:  if (!this.center && !this.isValidLonLat(lonlat)) { lonlat = this.maxExtent.getCenterLonLat(); }  
context:     setCenter: function (lonlat, zoom, dragging) {        var zoomChanged = (this.isValidZoomLevel(zoom)) &&                           (zoom != this.getZoom());        var centerChanged = (this.isValidLonLat(lonlat)) &&                             (!lonlat.equals(this.center));        // if neither center nor zoom will change, no need to do anything        if (zoomChanged || centerChanged || !dragging) {            if (!dragging) { this.events.triggerEvent("movestart"); }            if (centerChanged) {                if ((!zoomChanged) && (this.center)) {                     // if zoom hasnt changed, just slide layerContainer                    //  (must be done before setting this.center to new value)                    this.centerLayerContainer(lonlat);                }                this.center = lonlat.clone();            }            // (re)set the layerContainerDiv's location            if ((zoomChanged) || (this.layerContainerOrigin == null)) {                this.layerContainerOrigin = this.center.clone();                this.layerContainerDiv.style.left = "0px";                this.layerContainerDiv.style.top  = "0px";            }            if (zoomChanged) {                this.zoom = zoom;                                    //redraw popups                for (var i = 0; i < this.popups.length; i++) {                    this.popups[i].updatePosition();                }            }                            //send the move call to the baselayer and all the overlays                var bounds = this.getExtent();            for (var i = 0; i < this.layers.length; i++) {                var layer = this.layers[i];                if (zoomChanged || (layer.display && layer.inRange())) {                    layer.moveTo(bounds, zoomChanged, dragging);                }            }                        this.events.triggerEvent("move");                if (zoomChanged) { this.events.triggerEvent("zoomend"); }        }        // even if nothing was done, we want to notify of this        if (!dragging) { this.events.triggerEvent("moveend"); }    },
meta: 8310	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8310/33c37ef78bf1dc3642689a6631ce5453465caa74/Map.js/clean/lib/OpenLayers/Map.js