From 7930d1a129e4834fdb1f32b1541b94b695aecf7a Mon Sep 17 00:00:00 2001 From: Austin Hyde Date: Wed, 5 Feb 2014 15:42:22 -0500 Subject: [PATCH] If the map has a background, zIndex=-1 puts the layers behind the background --- src/ol/dom/dom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ol/dom/dom.js b/src/ol/dom/dom.js index 6ad6fb90b4..9b9dea6990 100644 --- a/src/ol/dom/dom.js +++ b/src/ol/dom/dom.js @@ -140,7 +140,7 @@ ol.dom.setOpacity = function(element, value) { // Fix to apply filter to absolutely-positioned children element if (element.currentStyle.zIndex === 'auto') { - element.style.zIndex = -1; + element.style.zIndex = 0; } } else { goog.style.setOpacity(element, value); @@ -167,7 +167,7 @@ ol.dom.setIEMatrix_ = function(element, value) { // Fix to apply filter to absolutely-positioned children element if (element.currentStyle.zIndex === 'auto') { - element.style.zIndex = -1; + element.style.zIndex = 0; } };