Changeset 5284
- Timestamp:
- 11/27/07 05:17:54 (1 year ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Tile/Image.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Tile/Image.js
r5157 r5284 37 37 frame: null, 38 38 39 40 /** 41 * Property: layerAlphaHack 42 * {Boolean} True if the png alpha hack needs to be applied on the layer's div. 43 */ 44 layerAlphaHack: null, 45 39 46 /** TBD 3.0 - reorder the parameters to the init function to remove 40 47 * URL. the getUrl() function on the layer gets called on … … 59 66 this.frame.style.overflow = 'hidden'; 60 67 this.frame.style.position = 'absolute'; 68 69 this.layerAlphaHack = this.layer.alpha && OpenLayers.Util.alphaHack(); 61 70 }, 62 71 … … 116 125 117 126 var imageSize = this.layer.getImageSize(); 118 if (this.layer .alpha) {127 if (this.layerAlphaHack) { 119 128 OpenLayers.Util.modifyAlphaImageDiv(this.imgDiv, 120 129 null, null, imageSize, this.url); … … 147 156 var size = this.layer.getImageSize(); 148 157 149 if (this.layer .alpha) {158 if (this.layerAlphaHack) { 150 159 this.imgDiv = OpenLayers.Util.createAlphaImageDiv(null, 151 160 offset, … … 231 240 // from the map, in which case this check is not needed. 232 241 if (this.layer) { 233 var loaded = this.layer .alpha? this.imgDiv.firstChild.src : this.imgDiv.src;242 var loaded = this.layerAlphaHack ? this.imgDiv.firstChild.src : this.imgDiv.src; 234 243 if (!OpenLayers.Util.isEquivalentUrl(loaded, this.url)) { 235 244 this.imgDiv.style.display = "none";
