Google Earth API Samples - Show/Hide Navigation Controls

Last Modified:
06/08/2009
Installed Plugin Version:
...
Navigation Control Visibility
Position

Relevant Resources:

Relevant Code Excerpt:

// visibility
function visShow() {
  ge.getNavigationControl().setVisibility(ge.VISIBILITY_SHOW);
}

function visAuto() {
  ge.getNavigationControl().setVisibility(ge.VISIBILITY_AUTO);
}

function visHide() {
  ge.getNavigationControl().setVisibility(ge.VISIBILITY_HIDE);
}

// position
function posTopLeft() {
  ge.getNavigationControl().getScreenXY().setXUnits(ge.UNITS_PIXELS);
  ge.getNavigationControl().getScreenXY().setYUnits(ge.UNITS_INSET_PIXELS);
}

function posTopRight() {
  ge.getNavigationControl().getScreenXY().setXUnits(ge.UNITS_INSET_PIXELS);
  ge.getNavigationControl().getScreenXY().setYUnits(ge.UNITS_INSET_PIXELS);
}

function posBottomLeft() {
  ge.getNavigationControl().getScreenXY().setXUnits(ge.UNITS_PIXELS);
  ge.getNavigationControl().getScreenXY().setYUnits(ge.UNITS_PIXELS);
}

function posBottomRight() {
  ge.getNavigationControl().getScreenXY().setXUnits(ge.UNITS_INSET_PIXELS);
  ge.getNavigationControl().getScreenXY().setYUnits(ge.UNITS_PIXELS);
}