no longer need to worry about grid moving around when it's invisible.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1251 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -125,12 +125,8 @@ OpenLayers.Layer.Grid.prototype =
|
||||
bounds = this.map.getExtent();
|
||||
}
|
||||
if (bounds != null) {
|
||||
if (!this.getVisibility()) {
|
||||
if (zoomChanged) {
|
||||
this.clearGrid();
|
||||
}
|
||||
} else if (!this.grid.length || zoomChanged
|
||||
|| !this.getGridBounds().containsBounds(bounds, true)) {
|
||||
if (!this.grid.length || zoomChanged
|
||||
|| !this.getGridBounds().containsBounds(bounds, true)) {
|
||||
this._initTiles();
|
||||
} else {
|
||||
while (true) {
|
||||
|
||||
Reference in New Issue
Block a user