coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1152 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -146,14 +146,16 @@ OpenLayers.Layer.Grid.prototype =
|
||||
this._initTiles();
|
||||
} else {
|
||||
while (true) {
|
||||
var topLeft = this.map.getViewPortPxFromLayerPx( this.grid[0][0].position );
|
||||
if (topLeft.x > -this.tileSize.w * (this.buffer - 1)) {
|
||||
var tlLayer = this.grid[0][0].position;
|
||||
var tlViewPort =
|
||||
this.map.getViewPortPxFromLayerPx(tlLayer);
|
||||
if (tlViewPort.x > -this.tileSize.w * (this.buffer - 1)) {
|
||||
this.shiftColumn(true);
|
||||
} else if (topLeft.x < -this.tileSize.w * this.buffer) {
|
||||
} else if (tlViewPort.x < -this.tileSize.w * this.buffer) {
|
||||
this.shiftColumn(false);
|
||||
} else if (topLeft.y > -this.tileSize.w * (this.buffer - 1)) {
|
||||
} else if (tlViewPort.y > -this.tileSize.w * (this.buffer - 1)) {
|
||||
this.shiftRow(true);
|
||||
} else if (topLeft.y < -this.tileSize.h * this.buffer) {
|
||||
} else if (tlViewPort.y < -this.tileSize.h * this.buffer) {
|
||||
this.shiftRow(false);
|
||||
} else {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user