Merge branch 'master' of github.com:openlayers/openlayers into utfgrid
This commit is contained in:
@@ -208,11 +208,12 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {
|
||||
* code.
|
||||
*/
|
||||
positionTile: function() {
|
||||
var style = this.getTile().style;
|
||||
var style = this.getTile().style,
|
||||
size = this.layer.getImageSize(this.bounds);
|
||||
style.left = this.position.x + "%";
|
||||
style.top = this.position.y + "%";
|
||||
style.width = this.size.w + "%";
|
||||
style.height = this.size.h + "%";
|
||||
style.width = size.w + "%";
|
||||
style.height = size.h + "%";
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -256,11 +257,6 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {
|
||||
var top = this.layer.gutter / this.layer.tileSize.h * 100;
|
||||
style.left = -left + "%";
|
||||
style.top = -top + "%";
|
||||
style.width = (2 * left + 100) + "%";
|
||||
style.height = (2 * top + 100) + "%";
|
||||
} else {
|
||||
style.width = "100%";
|
||||
style.height = "100%";
|
||||
}
|
||||
style.visibility = "hidden";
|
||||
style.opacity = 0;
|
||||
@@ -429,6 +425,7 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {
|
||||
this.setImgSrc(this.layer.getURL(this.bounds));
|
||||
} else {
|
||||
OpenLayers.Element.addClass(img, "olImageLoadError");
|
||||
this.events.triggerEvent("loaderror");
|
||||
this.onImageLoad();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,7 +65,11 @@ OpenLayers.Tile.Image.IFrame = {
|
||||
// And if we had an iframe we also remove the event pane.
|
||||
|
||||
if(fromIFrame) {
|
||||
this.blankImageUrl = this._blankImageUrl;
|
||||
this.frame.removeChild(this.frame.firstChild);
|
||||
} else {
|
||||
this._blankImageUrl = this.blankImageUrl;
|
||||
this.blankImageUrl = "about:blank";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -85,7 +89,7 @@ OpenLayers.Tile.Image.IFrame = {
|
||||
style.width = "100%";
|
||||
style.height = "100%";
|
||||
style.zIndex = 1;
|
||||
style.backgroundImage = "url(" + this.blankImageUrl + ")";
|
||||
style.backgroundImage = "url(" + this._blankImageUrl + ")";
|
||||
this.frame.appendChild(eventPane);
|
||||
}
|
||||
|
||||
@@ -133,7 +137,7 @@ OpenLayers.Tile.Image.IFrame = {
|
||||
return OpenLayers.Tile.Image.prototype.getImage.apply(this, arguments);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Method: createRequestForm
|
||||
* Create the html <form> element with width, height, bbox and all
|
||||
|
||||
Reference in New Issue
Block a user