diff --git a/app.js b/app.js index 6bc5b2a..62b1a54 100644 --- a/app.js +++ b/app.js @@ -37,6 +37,7 @@ const app = Vue.createApp( { canvas2D.getContext('2d').clearRect(0, 0, canvas2D.width, canvas2D.height); mountedApp.object_path.length = 0; + mountedApp.predicted_path.length = 0; // Cleaning all interface output fields. document.getElementById("latitude").value = ''; diff --git a/components/Interface/ViewPanel/components/Map2DTab/map.js b/components/Interface/ViewPanel/components/Map2DTab/map.js index 1c300d0..3ffe567 100644 --- a/components/Interface/ViewPanel/components/Map2DTab/map.js +++ b/components/Interface/ViewPanel/components/Map2DTab/map.js @@ -24,7 +24,7 @@ function updateMap(paths) { lon = longitude/scale_fix; canvas2D.getContext('2d').fillStyle = "rgba(255, 255, 255, 1)"; - canvas2D.getContext('2d').fillRect(lon, lat, 2, 2); + canvas2D.getContext('2d').fillRect(lon, lat, 0.3, 0.3); } } diff --git a/components/Interface/ViewPanel/components/SpectsTab/SpecsTab.js b/components/Interface/ViewPanel/components/SpectsTab/SpecsTab.js index 805587e..08995a5 100644 --- a/components/Interface/ViewPanel/components/SpectsTab/SpecsTab.js +++ b/components/Interface/ViewPanel/components/SpectsTab/SpecsTab.js @@ -89,7 +89,7 @@ app.component('specs-tab', { tle_string(new_value, old_value){ this.feedTLEFields(); - this.fetchSatbotInfo(); + // this.fetchSatbotInfo(); this.fetchPredictedPath(); } @@ -225,15 +225,14 @@ app.component('specs-tab', { // console.log(encodeURI(tle_line2)); // Request computed orbit based on the TLE info. - API_URL = "http://ec2-34-222-130-73.us-west-2.compute.amazonaws.com/skyVue-php" + "?tle_line1=" + tle_line1 + "&tle_line2=" + tle_line2; + API_URL = "https://ec2-34-222-130-73.us-west-2.compute.amazonaws.com/skyVue-php/" + "?tle_line1=" + tle_line1 + "&tle_line2=" + tle_line2; fetch(API_URL) .then((response) => response.json()) .then((data) => { - console.log(data); + // console.log(data); - // mountedApp.predicted_path = data.path; - // console.log(mountedApp.predicted_path); + mountedApp.predicted_path = data; });