OpenLayers OpenLayers

Changeset 2219

Show
Ignore:
Timestamp:
02/10/07 07:41:09 (2 years ago)
Author:
bwoodall
Message:

a fix for the grid_initTiles woes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/bwoodall/openlayers/lib/OpenLayers/Map.js

    r2167 r2219  
    735735                this.layerContainerDiv.style.left = "0px"; 
    736736                this.layerContainerDiv.style.top  = "0px"; 
     737            } 
     738 
     739            if (zoomChanged || !this.baseLayer.state) { 
     740                this.baseLayer.state =  
     741                    OpenLayers.Util.createUniqueID("OUcreateImage_"); 
    737742            } 
    738743 
  • sandbox/bwoodall/openlayers/lib/OpenLayers/Tile/Image.js

    r2163 r2219  
    5353            this.initImgDiv(); 
    5454        } 
     55 
     56        this.imgDiv.state = this.layer.map.baseLayer.state; 
     57        this.imgDiv.layer = this.layer; 
    5558         
    5659        this.url = this.layer.getURL(this.bounds); 
  • sandbox/bwoodall/openlayers/lib/OpenLayers/Util.js

    r2162 r2219  
    217217} 
    218218 
     219/** 
     220 * 
     221 * 
     222 */ 
    219223OpenLayers.Util.onImageLoad = function() { 
    220     this.style.backgroundColor = null; 
    221     this.style.display = "";   
     224    if (this.state && this.state == this.layer.map.baseLayer.state) { 
     225        this.style.backgroundColor = null; 
     226        this.style.display = "";   
     227    } 
     228 
    222229}; 
    223230 
     
    322329    var div = OpenLayers.Util.createDiv(); 
    323330    var img = OpenLayers.Util.createImage(null, null, null, null, null, null,  
    324                                           false); 
     331                                          null, false); 
    325332    div.appendChild(img); 
    326333