blankImageUrl is no longer needed for image tiles
This commit is contained in:
@@ -25,6 +25,14 @@ OpenLayers.Tile.Image.IFrame = {
|
||||
*/
|
||||
useIFrame: null,
|
||||
|
||||
/**
|
||||
* Property: blankImageUrl
|
||||
* {String} Using a data scheme url is not supported by all browsers, but
|
||||
* we don't care because we either set it as css backgroundImage, or the
|
||||
* image's display style is set to "none" when we use it.
|
||||
*/
|
||||
blankImageUrl: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAQAIBRAA7",
|
||||
|
||||
/**
|
||||
* Method: draw
|
||||
* Set useIFrame in the instance, and operate the image/iframe switch.
|
||||
@@ -65,11 +73,7 @@ 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";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -89,7 +93,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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user