OpenLayers OpenLayers

Changeset 1779

Show
Ignore:
Timestamp:
11/08/06 11:42:56 (2 years ago)
Author:
euzuro
Message:

applying patch from #387 - if map has changed size, destroy old tile, make a new one

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Layer/WMS/Untiled.js

    r1721 r1779  
    151151            var pos = this.map.getLayerPxFromLonLat(ul); 
    152152 
     153            if ( this.tile && !this.tile.size.equals(tileSize)) { 
     154                this.tile.destroy(); 
     155                this.tile = null; 
     156            } 
     157 
    153158            if (!this.tile) { 
    154159                this.tile = new OpenLayers.Tile.Image(this, pos, tileBounds,