diff --git a/lib/OpenLayers/Layer/Google.js b/lib/OpenLayers/Layer/Google.js index 3fc0c0a590..f0e2b9ae5f 100644 --- a/lib/OpenLayers/Layer/Google.js +++ b/lib/OpenLayers/Layer/Google.js @@ -124,13 +124,6 @@ OpenLayers.Layer.Google = OpenLayers.Class( // move the ToS and branding stuff up to the pane // thanks a *mil* Erik for thinking of this - var poweredBy = this.div.lastChild; - this.div.removeChild(poweredBy); - this.pane.appendChild(poweredBy); - poweredBy.className = "olLayerGooglePoweredBy gmnoprint"; - poweredBy.style.left = ""; - poweredBy.style.bottom = ""; - var termsOfUse = this.div.lastChild; this.div.removeChild(termsOfUse); this.pane.appendChild(termsOfUse); @@ -138,6 +131,13 @@ OpenLayers.Layer.Google = OpenLayers.Class( termsOfUse.style.right = ""; termsOfUse.style.bottom = ""; + var poweredBy = this.div.lastChild; + this.div.removeChild(poweredBy); + this.pane.appendChild(poweredBy); + poweredBy.className = "olLayerGooglePoweredBy gmnoprint"; + poweredBy.style.left = ""; + poweredBy.style.bottom = ""; + } catch (e) { OpenLayers.Console.error(e); }