Ticket #1496: Tilesize.patch
| File Tilesize.patch, 2.0 kB (added by pascalou, 8 months ago) |
|---|
-
lib/OpenLayers/Tile/Image.js
old new 166 166 OpenLayers.Util.modifyDOMElement(this.frame, 167 167 null, this.position, this.size); 168 168 169 var imageSize = this.layer.getImageSize();170 169 if (this.layerAlphaHack) { 171 170 OpenLayers.Util.modifyAlphaImageDiv(this.imgDiv, 172 null, null, imageSize, this.url);171 null, null, this.size, this.url); 173 172 } else { 174 173 OpenLayers.Util.modifyDOMElement(this.imgDiv, 175 null, null, imageSize) ;174 null, null, this.size) ; 176 175 this.imgDiv.src = this.url; 177 176 } 178 177 return true; … … 199 198 initImgDiv: function() { 200 199 201 200 var offset = this.layer.imageOffset; 202 var size = this.layer.getImageSize();203 201 204 202 if (this.layerAlphaHack) { 205 203 this.imgDiv = OpenLayers.Util.createAlphaImageDiv(null, 206 204 offset, 207 size,205 this.size, 208 206 null, 209 207 "relative", 210 208 null, … … 214 212 } else { 215 213 this.imgDiv = OpenLayers.Util.createImage(null, 216 214 offset, 217 size,215 this.size, 218 216 null, 219 217 "relative", 220 218 null,
