Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Finds and returns all spheres, passes them to the optional callback function (if provided), and returns them.

Parameters:

  • callback (function): (OPTIONAL) A callback function to execute after finding the nearest sphere. It will be passed the following automatically:

    • response (array): An array of all spheres. Each sphere is an object with the following properties:

      • id (number): The sphere id

      • latitude (number): The latitude of the sphere

      • longitude (number): The longitude of the sphere

      • dateTimeAcquired (string | null): A string representing the date that the sphere imagery was captured

Returns: A promise that resolves to response (array): An array of all spheres.

Code Sample

Iframe
src//jsfiddle.net/AerialSphere/z784nx5u/embedded/js,html,css,result/dark/
width90%
framebordershow
height360px