getZoom

Gets the current zoom level for the active sphere, passes it to the optional callback function (if provided), and returns it.

See sendData for how to set this value.

Parameters:

  • callback (function): (OPTIONAL) A callback function to execute. It will be passed an object with the following attribute automatically:

    • cameraZoom (number): A number representing the current zoom level

Returns: A promise that resolves to the same object that is passed to the callback.

Code Sample