Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Removed redundant zoom param

...

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

    • azimuthAngle (number): The pan after the view change

    • polarAngle (number): The tilt after the view change

    • zoom (number): The new zoom level after the view change. See sendData for how to set the zoom programmatically, and getData for reading the current zoom level outside of events.

    • eventName (string): The name of the view change event. The possibilities are:

      • "controlstart": When the user starts to control the camera via mouse / touches

      • "control": When the user controls the camera (dragging)

      • "controlend": When the user ends to control the camera

      • "update": When the camera position is updated

      • "wake": When the camera start moving

      • "sleep": When the camera end moving

    • zoom (number): The new zoom level after the view change. See sendData for how to set the zoom programmatically, and getData for reading the current zoom level outside of events.

Returns: Nothing

Code Sample

...