diff --git a/lib/OpenLayers/Layer/Google.js b/lib/OpenLayers/Layer/Google.js index 74304b8161..106e7684a6 100644 --- a/lib/OpenLayers/Layer/Google.js +++ b/lib/OpenLayers/Layer/Google.js @@ -121,13 +121,24 @@ OpenLayers.Layer.Google.prototype = // create GMap, hide nav controls this.gmap = new GMap2( this.div ); this.gmap.disableDragging(); - - // this causes the GMap to set itself to Map's center/zoom + + // move the ToS and branding stuff up to the pane + // thanks a *mil* Erik for thinking of this + var termsOfUse = this.div.lastChild; + this.div.removeChild(termsOfUse); + this.pane.appendChild(termsOfUse); + + var poweredBy = this.div.lastChild; + this.div.removeChild(poweredBy); + this.pane.appendChild(poweredBy); + + // this causes the GMap to set itself to Map's center/zoom this.moveTo(); } catch (e) { this.loadWarningMessage(); } + }, /**