diff options
Diffstat (limited to 'tools/mmd/orbtrak.js')
-rw-r--r-- | tools/mmd/orbtrak.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/mmd/orbtrak.js b/tools/mmd/orbtrak.js index fc848b5..0e5d845 100644 --- a/tools/mmd/orbtrak.js +++ b/tools/mmd/orbtrak.js @@ -30,7 +30,7 @@ var Orb = from: new OpenLayers.Projection ("EPSG:4326"),
to: new OpenLayers.Projection ("EPSG:900913"),
- startOSMTracking: function (minutes, longitude, latitude, altitude, name)
+ startOSMTracking: function (longitude, latitude, altitude, name)
{
PLib.InitializeData();
PLib.configureGroundStation(latitude, longitude, altitude, name);
@@ -48,7 +48,7 @@ var Orb = var homeStyle = {fillColor: "#00ff00", pointRadius: 3, stroke: false};
var home = new OpenLayers.LonLat (longitude, latitude).transform (Orb.from, Orb.to);
- Orb.createSatelliteTrack (minutes);
+ Orb.createSatelliteTrack ();
Orb.homeLayer.addFeatures ([
new OpenLayers.Feature.Vector (
new OpenLayers.Geometry.Point (home.lon, home.lat),
@@ -60,9 +60,11 @@ var Orb = setTimeout ("Orb.updateOSMSatellite ()", document.getElementById ("refresh").value);
},
- createSatelliteTrack: function (minutes)
+ createSatelliteTrack: function ()
{
- if (document.getElementById ("previewMinutes") != null)
+ if (document.getElementById ("previewMinutes") == null)
+ minutes = 90;
+ else
minutes = document.getElementById ("previewMinutes").value;
Orb.trackLayer.destroyFeatures ();
var curve = new Array ();
|