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
This commit is contained in:
Schuyler Erle
2006-10-06 17:18:29 +00:00
parent e7834c8922
commit f27cbc855f

View File

@@ -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) {