For IFrame tiles, we need to set opacity on the IFrame's parent.
This commit is contained in:
@@ -1287,6 +1287,11 @@ OpenLayers.Layer = OpenLayers.Class({
|
||||
var childNodes = this.div.childNodes;
|
||||
for(var i = 0, len = childNodes.length; i < len; ++i) {
|
||||
var element = childNodes[i].firstChild || childNodes[i];
|
||||
var lastChild = childNodes[i].lastChild;
|
||||
//TODO de-uglify this
|
||||
if (lastChild && lastChild.nodeName.toLowerCase() === "iframe") {
|
||||
element = lastChild.parentNode;
|
||||
}
|
||||
OpenLayers.Util.modifyDOMElement(element, null, null, null,
|
||||
null, null, null, opacity);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user