Skip to content

Commit

Permalink
For IFrame tiles, we need to set opacity on the IFrame's parent.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahocevar committed Apr 23, 2012
1 parent a57c56e commit 179433d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/OpenLayers/Layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 179433d

Please sign in to comment.