We never need to retile when the zoom didn't change.

This commit is contained in:
ahocevar
2011-12-03 00:13:44 +01:00
parent b70ea9e8c1
commit 08af94cf84

View File

@@ -319,14 +319,6 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
}
} else {
// if the bounds have changed such that they are not even
// *partially* contained by our tiles (IE user has
// programmatically panned to the other side of the earth)
// then we want to reTile (thus, partial true).
forceReTile = forceReTile ||
!tilesBounds.containsBounds(bounds, true);
if(resolution !== serverResolution) {
bounds = this.map.calculateBounds(null, serverResolution);
if(forceReTile) {