Parameters:
widgetName
(string | array of strings): Thename
or list ofname
s of widgets to enable/disable. The following strings are supported. If any other strings are passed, then the whole operation will fail.fullScreen
: the button to switch to full-screen modehelp
: the button to bring up on-screen help for using the viewerinfo
: the button to show info about the current spheresnapshot
: the button to display the SnapshotHD feature functionalitynavigation
: the zoom and compass buttonsview_toggle
: the button to toggle between sphere and map view
enabled
(boolean): Iftrue
, then show the given widget(s); iffalse
, then hide them. (By default, all are visible.)
Returns: A promise that resolves to an object with boolean properties corresponding to each possible widget name above, set to true
if that widget is visible.