OpenLayers OpenLayers

Ticket #1017: clear.patch

File clear.patch, 1.6 kB (added by euzuro, 1 year ago)
  • lib/OpenLayers/Tile/WFS.js

    old new  
    6565     *   be reused in a new location. 
    6666     */ 
    6767    clear: function() { 
    68         OpenLayers.Tile.prototype.clear.apply(this, arguments); 
    6968        this.destroyAllFeatures(); 
    7069    }, 
    7170     
  • lib/OpenLayers/Tile/Image.js

    old new  
    133133     *   be reused in a new location. 
    134134     */ 
    135135    clear: function() { 
    136         OpenLayers.Tile.prototype.clear.apply(this, arguments); 
    137136        if(this.imgDiv) { 
    138137            this.imgDiv.style.display = "none"; 
    139138        } 
  • lib/OpenLayers/Tile.js

    old new  
    175175            redraw = true; 
    176176        } 
    177177 
    178         this.clear()
     178        this.drawn = false
    179179        this.bounds = bounds.clone(); 
    180180        this.position = position.clone(); 
    181181        if (redraw) { 
     
    186186    /**  
    187187     * Method: clear 
    188188     * 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. 
    190190     */ 
    191191    clear: function() { 
    192         this.drawn = false; 
     192        // to be implemented by subclasses 
    193193    }, 
    194194     
    195195    /**