Enable Spiral Tile Loading In KaMap.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1237 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-08-16 15:34:59 +00:00
parent 6735fb0b2a
commit d828dd8f81

View File

@@ -139,10 +139,9 @@ OpenLayers.Layer.KaMap.prototype =
tile = row[colidx++]; tile = row[colidx++];
if (!tile) { if (!tile) {
tile = this.addTile(tileBounds, px); tile = this.addTile(tileBounds, px);
tile.draw();
row.push(tile); row.push(tile);
} else { } else {
tile.moveTo(tileBounds, px); tile.moveTo(tileBounds, px, false);
} }
tileoffsetlon += tilelon; tileoffsetlon += tilelon;
@@ -153,6 +152,8 @@ OpenLayers.Layer.KaMap.prototype =
tileoffsety += this.tileSize.h; tileoffsety += this.tileSize.h;
} while(tileoffsetlat >= bounds.bottom - tilelat * this.buffer) } while(tileoffsetlat >= bounds.bottom - tilelat * this.buffer)
this.spiralTileLoad();
}, },
/** @final @type String */ /** @final @type String */