new Satellite(options)
Initializes a Satellite object (requires Google Maps API3)
Parameters:
Name | Type | Description |
---|---|---|
options |
orbits.SatelliteOptions | an obj with options, see orbits.SatelliteOptions |
Methods
-
refresh()
-
Recalculates the position and updates the markers
-
refresh_path()
-
Redraw path
-
setDate(date)
-
Set a Date instance or null to use the current datetime. Call refresh() to update the position afterward.
Parameters:
Name Type Description date
Date An instance of Date -
setMap(map)
-
Set the map instance to use
Parameters:
Name Type Description map
google.maps.Map An instance of google.maps.Map -
setTLE(tle)
-
Set TLE for this satellite
Parameters:
Name Type Description tle
orbits.TLE An instance of orbits.TLE