If the map has a background, zIndex=-1 puts the layers behind the background

This commit is contained in:
Austin Hyde
2014-02-05 15:42:22 -05:00
parent 298674d14f
commit 7930d1a129

View File

@@ -140,7 +140,7 @@ ol.dom.setOpacity = function(element, value) {
// Fix to apply filter to absolutely-positioned children element // Fix to apply filter to absolutely-positioned children element
if (element.currentStyle.zIndex === 'auto') { if (element.currentStyle.zIndex === 'auto') {
element.style.zIndex = -1; element.style.zIndex = 0;
} }
} else { } else {
goog.style.setOpacity(element, value); goog.style.setOpacity(element, value);
@@ -167,7 +167,7 @@ ol.dom.setIEMatrix_ = function(element, value) {
// Fix to apply filter to absolutely-positioned children element // Fix to apply filter to absolutely-positioned children element
if (element.currentStyle.zIndex === 'auto') { if (element.currentStyle.zIndex === 'auto') {
element.style.zIndex = -1; element.style.zIndex = 0;
} }
}; };