Sphere Functionality

Sphere Functionality

openSphereById

Opens the sphere view for the given sphere. Closes the map view if it is open.

openSphere

Opens the sphere view. Closes the map view if it is open. This has no effect if there is no active sphere.

closeSphere

Opens the map view and closes the sphere view. This has no effect if it is already in the map view.

openMap

Opens the map view. Closes the sphere view if it is open.

getActiveSphere

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

getNearestSphere

Searches for the sphere nearest to a specified latitude and longitude, passes it to the optional callback function (if provided), and returns it.

setSphereMarkerDistance

Sets the distance, in meters, for which sphere markers are displayed. Set to zero to not display any sphere markers. Ignored if there is a sphere marker list (see setSphereMarkerList).