Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added graphic with the names of the controls. Reordered the list to correspond to the order they appear in the viewer. Added [search] to list of parameters.
Excerpt

Hides or shows any of the viewer UI widgets.

...

Parameters:

  • widgetName (string | array of strings): The name or list of names of widgets to enable/disable. The following strings are supported. If any other strings are passed, then the whole operation will fail.

    • search: show or hide the search bar

    • fullScreen: the button to switch to full-screen mode

    • help: the button to bring up on-screen help for using the viewer

    • infonavigation: the zoom and compass buttons

    • view_toggle: the button to show info about the current spheretoggle between sphere and map view

    • snapshot: the button to display the SnapshotHD feature functionality

    • navigation: the zoom and compass buttons

    • view_toggle: the button to toggle between sphere and map viewinfo: the button to show info about the current sphere

    • help: the button to bring up on-screen help for using the viewer

  • enabled (boolean): If true, then show the given widget(s); if false, then hide them. (By default, all are visible.)

...