diff options
-rw-r--r-- | tools/mmd/orbtrak.js | 10 | ||||
-rw-r--r-- | tools/mmd/tracker.wsgi | 4 |
2 files changed, 8 insertions, 6 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 ();
diff --git a/tools/mmd/tracker.wsgi b/tools/mmd/tracker.wsgi index 5f77fdd..8762163 100644 --- a/tools/mmd/tracker.wsgi +++ b/tools/mmd/tracker.wsgi @@ -23,7 +23,7 @@ def application (environ, response): <script type="text/javascript"> function load() {{ - Orb.startOSMTracking(90, {longitude}, {latitude}, {altitude}, '{name}'); + Orb.startOSMTracking({longitude}, {latitude}, {altitude}, '{name}'); }} </script> </head> @@ -73,7 +73,7 @@ def application (environ, response): </div> <div class="telemetry"> <input class="telemetry" type="submit" value="update" id="setPreviewMinutes" onClick="Orb.createSatelliteTrack ()" /> - preview for the next <input class="telemetry" type="text" name="previewMinutes" id="previewMinutes" value="30" size="5" /> + preview for the next <input class="telemetry" type="text" name="previewMinutes" id="previewMinutes" value="90" size="5" /> minutes </div> <pre id="debug"></pre> |