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.
This commit is contained in:
ahocevar
2013-03-13 08:06:41 +01:00
parent 5b98769234
commit 3dea8dacb4

View File

@@ -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;