fix for #785 - fix up gutter logic a little bit. on a path to getting all gutter info in one place
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3555 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -107,13 +107,14 @@ OpenLayers.Tile.Image.prototype =
|
||||
OpenLayers.Util.modifyDOMElement(this.frame,
|
||||
null, this.position, this.size);
|
||||
|
||||
var imageSize = this.layer.getImageSize();
|
||||
if (this.layer.alpha) {
|
||||
OpenLayers.Util.modifyAlphaImageDiv(this.imgDiv,
|
||||
null, null, this.layer.imageSize, this.url);
|
||||
null, null, imageSize, this.url);
|
||||
} else {
|
||||
this.imgDiv.src = this.url;
|
||||
OpenLayers.Util.modifyDOMElement(this.imgDiv,
|
||||
null, null, this.layer.imageSize) ;
|
||||
null, null, imageSize) ;
|
||||
}
|
||||
this.drawn = true;
|
||||
return true;
|
||||
@@ -153,10 +154,14 @@ OpenLayers.Tile.Image.prototype =
|
||||
* Creates the imgDiv property on the tile.
|
||||
*/
|
||||
initImgDiv: function() {
|
||||
|
||||
var offset = this.layer.imageOffset;
|
||||
var size = this.layer.getImageSize();
|
||||
|
||||
if (this.layer.alpha) {
|
||||
this.imgDiv = OpenLayers.Util.createAlphaImageDiv(null,
|
||||
this.layer.imageOffset,
|
||||
this.layer.imageSize,
|
||||
offset,
|
||||
size,
|
||||
null,
|
||||
"relative",
|
||||
null,
|
||||
@@ -165,8 +170,8 @@ OpenLayers.Tile.Image.prototype =
|
||||
true);
|
||||
} else {
|
||||
this.imgDiv = OpenLayers.Util.createImage(null,
|
||||
this.layer.imageOffset,
|
||||
this.layer.imageSize,
|
||||
offset,
|
||||
size,
|
||||
null,
|
||||
"relative",
|
||||
null,
|
||||
|
||||
Reference in New Issue
Block a user