It gives valuable information especially for lost satellite surfers.
Play with it. Keep the map moving or it will fade out. The labels are clickable.The map type control of this page was positioned lower to make room for the NavLabel.
It is a simple custom GControl().
Set the single optional parameter to true, and make your own styling by CSS class "api-version-display".
/**
* Api version display as a custom GControl()
* @author Esa 2009
*/
function VersionControl(opt_no_style){
this.noStyle = opt_no_style;
};
VersionControl.prototype = new GControl();
VersionControl.prototype.initialize = function(map) {
var display = document.createElement("div");
map.getContainer().appendChild(display);
display.innerHTML = "2."+G_API_VERSION;
display.className = "api-version-display";
if(!this.noStyle){
display.style.fontFamily = "Arial, sans-serif";
display.style.fontSize = "11px";
}
this.htmlElement = display;
return display;
}
VersionControl.prototype.getDefaultPosition = function() {
return new GControlPosition(G_ANCHOR_BOTTOM_LEFT, new GSize(3, 38));
}