Changeset 10595


Ignore:
Timestamp:
Aug 5, 2010 8:34:48 AM (6 years ago)
Author:
tschaub
Message:

Making it so the clear method on the canvas renderer permanently clears features (as with the other renderers). r=crschmidt (closes #2775)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openlayers/lib/OpenLayers/Renderer/Canvas.js

    r10435 r10595  
    394394        return [x, y];
    395395    },
    396        
     396
    397397    /**
    398398     * Method: clear
    399399     * Clear all vectors from the renderer.
    400      * virtual function.
    401400     */   
    402401    clear: function() {
    403402        this.canvas.clearRect(0, 0, this.root.width, this.root.height);
     403        this.features = {};
    404404    },
    405405
     
    459459    redraw: function() {
    460460        if (!this.locked) {
    461             this.clear();
     461            this.canvas.clearRect(0, 0, this.root.width, this.root.height);
    462462            var labelMap = [];
    463463            var feature, style;
Note: See TracChangeset for help on using the changeset viewer.