special precautions must be taken in updateBackBufferData
This commit is contained in:
@@ -493,7 +493,11 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
|
||||
if(this.map) {
|
||||
var resolution = this.map.getResolution();
|
||||
this.backBufferData.resolution = this.getServerResolution(resolution);
|
||||
}
|
||||
// the top left tile might have been destroyed, so its bounds
|
||||
// property may be null
|
||||
var topLeftTile = this.grid[0][0];
|
||||
if(topLeftTile.bounds) {
|
||||
this.backBufferData.lonlat = {lon: topLeftTile.bounds.left,
|
||||
lat: topLeftTile.bounds.top};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user