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:
@@ -139,10 +139,9 @@ OpenLayers.Layer.KaMap.prototype =
|
||||
tile = row[colidx++];
|
||||
if (!tile) {
|
||||
tile = this.addTile(tileBounds, px);
|
||||
tile.draw();
|
||||
row.push(tile);
|
||||
} else {
|
||||
tile.moveTo(tileBounds, px);
|
||||
tile.moveTo(tileBounds, px, false);
|
||||
}
|
||||
|
||||
tileoffsetlon += tilelon;
|
||||
@@ -152,6 +151,8 @@ OpenLayers.Layer.KaMap.prototype =
|
||||
tileoffsetlat -= tilelat;
|
||||
tileoffsety += this.tileSize.h;
|
||||
} while(tileoffsetlat >= bounds.bottom - tilelat * this.buffer)
|
||||
|
||||
this.spiralTileLoad();
|
||||
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user