onClick
The callback function passed here becomes the onclick handler for clicks within the AerialSphere frame.
Parameter:
callback
(function): A callback function to execute. It will be passed an object with the following properties:pan
(number): The pan of the click eventtilt
(number): The tilt of the click eventlat
(number): The calculated latitude at the click eventlng
(number): The calculated longitude at the click eventele
(number): The calculated altitude at the click event, measured in meters above sea level
Returns: Nothing