Ticket #1017: clear.patch
| File clear.patch, 1.6 kB (added by euzuro, 1 year ago) |
|---|
-
lib/OpenLayers/Tile/WFS.js
old new 65 65 * be reused in a new location. 66 66 */ 67 67 clear: function() { 68 OpenLayers.Tile.prototype.clear.apply(this, arguments);69 68 this.destroyAllFeatures(); 70 69 }, 71 70 -
lib/OpenLayers/Tile/Image.js
old new 133 133 * be reused in a new location. 134 134 */ 135 135 clear: function() { 136 OpenLayers.Tile.prototype.clear.apply(this, arguments);137 136 if(this.imgDiv) { 138 137 this.imgDiv.style.display = "none"; 139 138 } -
lib/OpenLayers/Tile.js
old new 175 175 redraw = true; 176 176 } 177 177 178 this. clear();178 this.drawn = false; 179 179 this.bounds = bounds.clone(); 180 180 this.position = position.clone(); 181 181 if (redraw) { … … 186 186 /** 187 187 * Method: clear 188 188 * Clear the tile of any bounds/position-related data so that it can 189 * be reused in a new location. 189 * be reused in a new location. To be implemented by subclasses. 190 190 */ 191 191 clear: function() { 192 this.drawn = false;192 // to be implemented by subclasses 193 193 }, 194 194 195 195 /**
