in Tile.Image do the opacity filter setting where it was done before, i.e. right after the img creation
This commit is contained in:
@@ -245,6 +245,11 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {
|
|||||||
}
|
}
|
||||||
style.visibility = "hidden";
|
style.visibility = "hidden";
|
||||||
style.opacity = 0;
|
style.opacity = 0;
|
||||||
|
if (this.layer.opacity < 1) {
|
||||||
|
style.filter = 'alpha(opacity=' +
|
||||||
|
(this.layer.opacity * 100) +
|
||||||
|
')';
|
||||||
|
}
|
||||||
style.position = "absolute";
|
style.position = "absolute";
|
||||||
if (this.layerAlphaHack) {
|
if (this.layerAlphaHack) {
|
||||||
// move the image out of sight
|
// move the image out of sight
|
||||||
@@ -309,7 +314,6 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {
|
|||||||
var img = this.imgDiv;
|
var img = this.imgDiv;
|
||||||
img.style.visibility = 'hidden';
|
img.style.visibility = 'hidden';
|
||||||
img.style.opacity = 0;
|
img.style.opacity = 0;
|
||||||
img.style.filter = 'alpha(opacity=0)';
|
|
||||||
if (url) {
|
if (url) {
|
||||||
img.src = url;
|
img.src = url;
|
||||||
}
|
}
|
||||||
@@ -361,7 +365,6 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {
|
|||||||
|
|
||||||
img.style.visibility = 'inherit';
|
img.style.visibility = 'inherit';
|
||||||
img.style.opacity = this.layer.opacity;
|
img.style.opacity = this.layer.opacity;
|
||||||
img.style.filter = 'alpha(opacity=' + (this.layer.opacity * 100) + ')';
|
|
||||||
|
|
||||||
this.isLoading = false;
|
this.isLoading = false;
|
||||||
this.events.triggerEvent("loadend");
|
this.events.triggerEvent("loadend");
|
||||||
|
|||||||
Reference in New Issue
Block a user