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
This commit is contained in:
@@ -121,13 +121,24 @@ OpenLayers.Layer.Google.prototype =
|
|||||||
// create GMap, hide nav controls
|
// create GMap, hide nav controls
|
||||||
this.gmap = new GMap2( this.div );
|
this.gmap = new GMap2( this.div );
|
||||||
this.gmap.disableDragging();
|
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();
|
this.moveTo();
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.loadWarningMessage();
|
this.loadWarningMessage();
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user