From b0478615531a423dbba9c4fea89f24be8a9c5807 Mon Sep 17 00:00:00 2001
From: JOE XMG <thunyathep.s@outlook.com>
Date: Thu, 16 Mar 2023 23:36:41 +0100
Subject: [PATCH] update

---
 public/application/js/cesium_00_Main.js        | 2 +-
 public/application/js/cesium_mouse_handling.js | 1 +
 public/application/js/pipelo_sta.js            | 2 +-
 public/application/js/staconnector.js          | 2 +-
 public/dashboard/index.html                    | 9 ++++-----
 5 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/public/application/js/cesium_00_Main.js b/public/application/js/cesium_00_Main.js
index 095bfbb..dfbd200 100644
--- a/public/application/js/cesium_00_Main.js
+++ b/public/application/js/cesium_00_Main.js
@@ -389,7 +389,7 @@ viewer.clock.currentTime = Cesium.JulianDate.fromIso8601(startTime);
 
 $('#BuildingStyleSelector').on('change', function () {
     // alert(this.value);
-    tileset_3Dbuildings.style = building_style[this.value];
+    tileset_3Dbuildings_full.style = building_style[this.value];
     $('.cesiumLegend').hide()
     try {
         $(`#${this.value}-legend`).show()
diff --git a/public/application/js/cesium_mouse_handling.js b/public/application/js/cesium_mouse_handling.js
index bea9045..7053498 100644
--- a/public/application/js/cesium_mouse_handling.js
+++ b/public/application/js/cesium_mouse_handling.js
@@ -144,6 +144,7 @@ viewer.screenSpaceEventHandler.setInputAction(function onLeftClick(
             // console.log("This is PIPE")
             // This case is true when the click feature is PIPE!
             var pipe_id = pickedFeature.id.name
+            console.log(`pipe_id: ${pipe_id}`)
             // var current_pipe_STA_URL = `http://193.196.138.56/iqg4icity_sensor/v1.1/MultiDatastreams(${pipe_sta_map[pipe_id]})/Observations?$orderby=phenomenonTime%20desc`
             var current_pipe_STA_URL = `https://covidsta.hft-stuttgart.de/iqg4icity_sensor/v1.1/MultiDatastreams(${pipe_sta_map[pipe_id]})/Observations?$orderby=phenomenonTime%20desc`
 
diff --git a/public/application/js/pipelo_sta.js b/public/application/js/pipelo_sta.js
index 0785302..c81c414 100644
--- a/public/application/js/pipelo_sta.js
+++ b/public/application/js/pipelo_sta.js
@@ -437,7 +437,7 @@ var pipe_lo = [
 // draw Pipe Location
 
 var pipe_lo_entities= [];
-
+console.log("Drawing [pipe_lo_entities]")
 for (let i = 0; i < pipe_lo.length; i++) {
     var name_devEUI = pipe_lo[i]["devEUI"];
     var pipe_lon = pipe_lo[i]["long"];
diff --git a/public/application/js/staconnector.js b/public/application/js/staconnector.js
index ea0dba9..60d9bb4 100644
--- a/public/application/js/staconnector.js
+++ b/public/application/js/staconnector.js
@@ -1,6 +1,6 @@
 // var STA_IQG_URL = "http://193.196.138.56/iqg4icity_sensor/v1.1/MultiDatastreams(1)/Observations?$orderby=phenomenonTime%20desc"
 
-
+console.log("loading STA connector...")
 
 function get_STA_Observation_Value(STA_URL , cb) {
     var settings = {
diff --git a/public/dashboard/index.html b/public/dashboard/index.html
index 6ea4b95..a3c28dd 100644
--- a/public/dashboard/index.html
+++ b/public/dashboard/index.html
@@ -142,20 +142,19 @@
                                         </label>
                                     </div>
                                     <div class="form-check">
-                                        <input class="form-check-input" type="checkbox" value="" id="util_nw_Enisyst"
-                                            checked>
+                                        <input class="form-check-input" type="checkbox" value="" id="util_nw_Enisyst">
                                         <label class="form-check-label" for="util_nw_Enisyst">
                                             Utility Network Stations (Enisyst)
                                         </label>
                                     </div>
                                     <hr>
-                                    <div style="display: none;">
+                                    <div>
                                         <h6>Building Style</h6>
                                         <select class="form-select" id="BuildingStyleSelector">
                                             <option value="AllWhite" selected>Default</option>
                                             <option value="transparent">Transparent</option>
-                                            <option value="PVPotential">PV Potential</option>
-                                            <option value="PVSpecificYield">PV Specific Yield</option>
+                                            <!-- <option value="PVPotential">PV Potential</option>
+                                            <option value="PVSpecificYield">PV Specific Yield</option> -->
                                         </select>
                                     </div>
                                     <h6>Building Function</h6>
-- 
GitLab