From f27cbc855f4624db34b067099b081a01cc965621 Mon Sep 17 00:00:00 2001 From: Schuyler Erle Date: Fri, 6 Oct 2006 17:18:29 +0000 Subject: [PATCH] Add CSS classes to GMaps Terms of Use and Copyright elements. git-svn-id: http://svn.openlayers.org/trunk/openlayers@1658 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/Google.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/OpenLayers/Layer/Google.js b/lib/OpenLayers/Layer/Google.js index 9997ba9574..b1c43181e1 100644 --- a/lib/OpenLayers/Layer/Google.js +++ b/lib/OpenLayers/Layer/Google.js @@ -124,15 +124,17 @@ OpenLayers.Layer.Google.prototype = // 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); + poweredBy.className = "olLayerGooglePoweredBy gmnoprint"; - // this causes the GMap to set itself to Map's center/zoom + var termsOfUse = this.div.lastChild; + this.div.removeChild(termsOfUse); + this.pane.appendChild(termsOfUse); + termsOfUse.className = "olLayerGoogleCopyright"; + + // this causes the GMap to set itself to Map's center/zoom this.moveTo(); } catch (e) {