just skip tiles that are currently loading when creating the back buffer

This commit is contained in:
Éric Lemoine
2011-10-29 21:11:14 +02:00
parent 8df1ae0e09
commit c0d210ef05

View File

@@ -472,7 +472,7 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
for(var j=0, lenJ=this.grid[i].length; j<lenJ; j++) {
var tile = this.grid[i][j].createBackBuffer();
if(!tile) {
return;
continue;
}
// to be able to correctly position the back buffer we
// place the tiles grid at (0, 0) in the back buffer