OpenLayers OpenLayers

Ticket #1018: drawn.patch

File drawn.patch, 2.1 kB (added by euzuro, 1 year ago)

depends on #1017

  • lib/OpenLayers/Tile/Image.js

    old new  
    123123            OpenLayers.Util.modifyDOMElement(this.imgDiv, 
    124124                    null, null, imageSize) ; 
    125125        } 
    126         this.drawn = true; 
    127126        return true; 
    128127    }, 
    129128 
  • lib/OpenLayers/Tile.js

    old new  
    7272     */     
    7373    position: null, 
    7474 
    75     /**  
    76      * Property: drawn  
    77      * {Boolean} false 
    78      */ 
    79     drawn: false, 
    80  
    8175    /** 
    8276     * Property: isLoading 
    8377     * {Boolean} Is the tile loading? 
     
    146140  
    147141        var mapExtent = this.layer.map.getExtent(); 
    148142        var withinMapExtent = (mapExtent && 
    149                                this.bounds.intersectsBounds(mapExtent, false)); 
     143                               this.bounds.intersectsBounds(mapExtent, true)); 
    150144          
    151145        // There are two cases where we *wouldn't* want to draw the tile: 
    152146        //   
     
    175169            redraw = true; 
    176170        } 
    177171 
    178         this.drawn = false; 
    179172        this.bounds = bounds.clone(); 
    180173        this.position = position.clone(); 
    181174        if (redraw) { 
  • lib/OpenLayers/Layer/Grid.js

    old new  
    548548                break; 
    549549            } 
    550550        }; 
    551         if (this.buffer == 0) { 
    552             for (var r=0, rl=this.grid.length; r<rl; r++) { 
    553                 var row = this.grid[r]; 
    554                 for (var c=0, cl=row.length; c<cl; c++) { 
    555                     var tile = row[c]; 
    556                     if (!tile.drawn &&  
    557                          tile.bounds.intersectsBounds(bounds, false)) { 
    558                         tile.draw(); 
    559                     } 
    560                 } 
    561             } 
    562         } 
    563551    }, 
    564552 
    565553    /**