From 3dea8dacb45441c218d2242391c71246b937a05d Mon Sep 17 00:00:00 2001 From: ahocevar Date: Wed, 13 Mar 2013 08:06:41 +0100 Subject: [PATCH] Using the correct parent node When we have a Google base layer, the parent node of the base layer's div will be a different one. --- lib/OpenLayers/Layer/Grid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Layer/Grid.js b/lib/OpenLayers/Layer/Grid.js index 304920f217..0b47935bd0 100644 --- a/lib/OpenLayers/Layer/Grid.js +++ b/lib/OpenLayers/Layer/Grid.js @@ -653,7 +653,7 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, { if (resolution === this.gridResolution) { this.div.insertBefore(backBuffer, this.div.firstChild); } else { - this.map.layerContainerDiv.insertBefore(backBuffer, this.map.baseLayer.div); + this.map.baseLayer.div.parentNode.insertBefore(backBuffer, this.map.baseLayer.div); } this.backBuffer = backBuffer;