Other Functions
getLayer
Searches for a layer with the given name, passes it to the optional callback function (if provided), and returns it. This will search both polygon and marker layers at once.
getPositionInfo
Gets the latitude/longitude and pan/tilt position for a pixel on the screen within the active sphere, passes that info to the optional callback function (if provided), and returns the info.
setLayerVisibility
Sets the visibility for the specified layer name, for all layer types: Polyline, Polygon and Marker.
replaceLayer
Finds the layer with the given name, and replaces it with new layer data. This works for all layer types (polygon, marker, polyline), but you cannot replace a layer with a different layer type (ie: trying to overwrite a polygon layer with a marker layer will not work).
removeLayer
Searches for a layer with the given name, and removes it.