Fix to remove extraneous clear() from Tile.moveTo (Closes #1017)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4502 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -175,7 +175,7 @@ OpenLayers.Tile = OpenLayers.Class({
|
|||||||
redraw = true;
|
redraw = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.clear();
|
this.drawn = false;
|
||||||
this.bounds = bounds.clone();
|
this.bounds = bounds.clone();
|
||||||
this.position = position.clone();
|
this.position = position.clone();
|
||||||
if (redraw) {
|
if (redraw) {
|
||||||
@@ -186,10 +186,10 @@ OpenLayers.Tile = OpenLayers.Class({
|
|||||||
/**
|
/**
|
||||||
* Method: clear
|
* Method: clear
|
||||||
* Clear the tile of any bounds/position-related data so that it can
|
* Clear the tile of any bounds/position-related data so that it can
|
||||||
* be reused in a new location.
|
* be reused in a new location. To be implemented by subclasses.
|
||||||
*/
|
*/
|
||||||
clear: function() {
|
clear: function() {
|
||||||
this.drawn = false;
|
// to be implemented by subclasses
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -133,7 +133,6 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {
|
|||||||
* be reused in a new location.
|
* be reused in a new location.
|
||||||
*/
|
*/
|
||||||
clear: function() {
|
clear: function() {
|
||||||
OpenLayers.Tile.prototype.clear.apply(this, arguments);
|
|
||||||
if(this.imgDiv) {
|
if(this.imgDiv) {
|
||||||
this.imgDiv.style.display = "none";
|
this.imgDiv.style.display = "none";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,7 +65,6 @@ OpenLayers.Tile.WFS = OpenLayers.Class(OpenLayers.Tile, {
|
|||||||
* be reused in a new location.
|
* be reused in a new location.
|
||||||
*/
|
*/
|
||||||
clear: function() {
|
clear: function() {
|
||||||
OpenLayers.Tile.prototype.clear.apply(this, arguments);
|
|
||||||
this.destroyAllFeatures();
|
this.destroyAllFeatures();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user