From 9bae3e8848f0086cc07462d8a5fef419ff50ed61 Mon Sep 17 00:00:00 2001 From: Schuyler Erle Date: Fri, 6 Oct 2006 17:28:01 +0000 Subject: [PATCH] Changes to Layer.Google and to default theme to move the GMaps chrome over to the lower left side to yield up the valuable lower right corner for our own stuff. git-svn-id: http://svn.openlayers.org/trunk/openlayers@1659 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/Google.js | 4 ++++ theme/default/style.css | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/lib/OpenLayers/Layer/Google.js b/lib/OpenLayers/Layer/Google.js index b1c43181e1..36f176fe5f 100644 --- a/lib/OpenLayers/Layer/Google.js +++ b/lib/OpenLayers/Layer/Google.js @@ -128,11 +128,15 @@ OpenLayers.Layer.Google.prototype = 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); termsOfUse.className = "olLayerGoogleCopyright"; + termsOfUse.style.right = ""; + termsOfUse.style.bottom = ""; // this causes the GMap to set itself to Map's center/zoom this.moveTo(); diff --git a/theme/default/style.css b/theme/default/style.css index e56b12a44a..1d9701a834 100644 --- a/theme/default/style.css +++ b/theme/default/style.css @@ -9,4 +9,12 @@ bottom: 1.5em; display: block; position: absolute; +} +.olLayerGoogleCopyright { + left: 2px; + bottom: 2px; +} +.olLayerGooglePoweredBy { + left: 2px; + bottom: 15px; }