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();
|
bounds = this.map.getExtent();
|
||||||
}
|
}
|
||||||
if (bounds != null) {
|
if (bounds != null) {
|
||||||
if (!this.getVisibility()) {
|
if (!this.grid.length || zoomChanged
|
||||||
if (zoomChanged) {
|
|| !this.getGridBounds().containsBounds(bounds, true)) {
|
||||||
this.clearGrid();
|
|
||||||
}
|
|
||||||
} else if (!this.grid.length || zoomChanged
|
|
||||||
|| !this.getGridBounds().containsBounds(bounds, true)) {
|
|
||||||
this._initTiles();
|
this._initTiles();
|
||||||
} else {
|
} else {
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|||||||
Reference in New Issue
Block a user