Bounds: Fixed comment location
This commit is contained in:
@@ -357,7 +357,6 @@ OpenLayers.Bounds = OpenLayers.Class({
|
|||||||
extend:function(object) {
|
extend:function(object) {
|
||||||
var bounds = null;
|
var bounds = null;
|
||||||
if (object) {
|
if (object) {
|
||||||
// clear cached center location
|
|
||||||
switch(object.CLASS_NAME) {
|
switch(object.CLASS_NAME) {
|
||||||
case "OpenLayers.LonLat":
|
case "OpenLayers.LonLat":
|
||||||
bounds = new OpenLayers.Bounds(object.lon, object.lat,
|
bounds = new OpenLayers.Bounds(object.lon, object.lat,
|
||||||
@@ -374,7 +373,9 @@ OpenLayers.Bounds = OpenLayers.Class({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (bounds) {
|
if (bounds) {
|
||||||
|
// clear cached center location
|
||||||
this.centerLonLat = null;
|
this.centerLonLat = null;
|
||||||
|
|
||||||
if ( (this.left == null) || (bounds.left < this.left)) {
|
if ( (this.left == null) || (bounds.left < this.left)) {
|
||||||
this.left = bounds.left;
|
this.left = bounds.left;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user