diff --git a/debug/tests/bringtoback.html b/debug/tests/bringtoback.html
new file mode 100644
index 00000000..7a51dede
--- /dev/null
+++ b/debug/tests/bringtoback.html
@@ -0,0 +1,37 @@
+
+
+
+ Leaflet debug page
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/layer/tile/TileLayer.js b/src/layer/tile/TileLayer.js
index 8657b0d5..7183db44 100644
--- a/src/layer/tile/TileLayer.js
+++ b/src/layer/tile/TileLayer.js
@@ -181,7 +181,7 @@ L.TileLayer = L.Class.extend({
}
}
- this._container.style.zIndex = isFinite(edgeZIndex) ? edgeZIndex + compare(1, -1) : '';
+ this.options.zIndex = this._container.style.zIndex = (isFinite(edgeZIndex) ? edgeZIndex : 0) + compare(1, -1);
},
_updateOpacity: function () {