clear the grid if not visible
git-svn-id: http://svn.openlayers.org/trunk/openlayers@958 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -113,6 +113,8 @@ OpenLayers.Layer.Grid.prototype =
|
|||||||
moveTo:function(bounds, zoomChanged, minor) {
|
moveTo:function(bounds, zoomChanged, minor) {
|
||||||
if (!this.getVisibility()) {
|
if (!this.getVisibility()) {
|
||||||
if (zoomChanged) {
|
if (zoomChanged) {
|
||||||
|
//now clear out the old grid and start a new one
|
||||||
|
this.clearGrid();
|
||||||
this.grid = null;
|
this.grid = null;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user