Overriding onImageLoad to set the opacity on the correct element.
This commit is contained in:
@@ -197,6 +197,19 @@ OpenLayers.Tile.Image.IFrame = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method: onImageLoad
|
||||||
|
* Handler for the image onload event
|
||||||
|
*/
|
||||||
|
onImageLoad: function() {
|
||||||
|
//TODO de-uglify opacity handling
|
||||||
|
OpenLayers.Tile.Image.prototype.onImageLoad.apply(this, arguments);
|
||||||
|
if (this.useIFrame === true) {
|
||||||
|
this.imgDiv.style.opacity = 1;
|
||||||
|
this.frame.style.opacity = this.layer.opacity;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method: createBackBuffer
|
* Method: createBackBuffer
|
||||||
* Override createBackBuffer to do nothing when we use an iframe. Moving an
|
* Override createBackBuffer to do nothing when we use an iframe. Moving an
|
||||||
|
|||||||
Reference in New Issue
Block a user