From a1ca8ebd0865d1e3d7fb7686469cb7408c957232 Mon Sep 17 00:00:00 2001 From: Schuyler Erle Date: Thu, 5 Oct 2006 20:46:58 +0000 Subject: [PATCH] Move the branding/ToS stuff up to the event pane in Layer.Google. Fixes #185. A big hurrah for the Uzmeister and his suggestion that solved this conundrum. git-svn-id: http://svn.openlayers.org/trunk/openlayers@1614 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/Google.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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(); } + }, /**