From 18991d4e72265cb89af5deb9889cf318c0bbfb18 Mon Sep 17 00:00:00 2001
From: Patrick <patrick.wuerstle@gmx.de>
Date: Wed, 12 Jan 2022 15:38:17 +0100
Subject: [PATCH] update Noise Sensor

---
 vcm/config.json                               | 10 +++----
 .../NoiseData/NoisePoint.geojson              | 30 ++++++++++++++++++-
 .../NoiseData/NoisePoint37833.geojson         | 29 ++++++++++++++++++
 vcm/js/noise.js                               |  2 +-
 vcm/templates/custom.js                       |  4 +--
 5 files changed, 66 insertions(+), 9 deletions(-)
 create mode 100644 vcm/datasource-data/NoiseData/NoisePoint37833.geojson

diff --git a/vcm/config.json b/vcm/config.json
index b81a1f89a..3955c4110 100644
--- a/vcm/config.json
+++ b/vcm/config.json
@@ -759,11 +759,11 @@
           "template": [
             "<div class='balloon' style='width: 200px; background-color: #3C3C3C; color: #FFFFFF;' id='myBalloon'>",
             "<button class='infobtn' id='infobtnNoise' onclick='NoiseText();'></button>",
-            "   <h1 class='balloon-title' style='color: #FFFFFF;'>Noise Sensor (53627)</h1>",
+            "   <h1 class='balloon-title' style='color: #FFFFFF;'>Noise Sensor (37833)</h1>",
             "   <div class='balloon-content' style='margin-right: 0px;'",
             "   </div>",
             "<div class='box-3'>",
-            "<div class='btn btn-three' id='noiseStuff' onclick='getNoiseData(\"53627\");SetNoiseDataWaiting()'>",
+            "<div class='btn btn-three' id='noiseStuff' onclick='getNoiseData(\"37833\");SetNoiseDataWaiting()'>",
             "<span>Get Noise Data</span>",
             "</div><br>",
             "<br></div><br>",
@@ -786,7 +786,7 @@
             ""
           ],
           "layerNames": [
-            "NoiseLocation53627"
+            "NoiseLocation37833"
           ]
         },{
           "template": [
@@ -1833,8 +1833,8 @@
       },
       "heightAboveGround": 0
     },{
-      "name": "NoiseLocation53627",
-      "url": "./datasource-data/NoiseData/NoisePoint53627.geojson",
+      "name": "NoiseLocation37833",
+      "url": "./datasource-data/NoiseData/NoisePoint37833.geojson",
       "type": "vcs.vcm.layer.GeoJSON",
       "datasourceId": "...",
       "activeOnStartup": false,
diff --git a/vcm/datasource-data/NoiseData/NoisePoint.geojson b/vcm/datasource-data/NoiseData/NoisePoint.geojson
index 6535c0264..aa2bb09b2 100644
--- a/vcm/datasource-data/NoiseData/NoisePoint.geojson
+++ b/vcm/datasource-data/NoiseData/NoisePoint.geojson
@@ -1 +1,29 @@
-{"id": "LFwfxQb4d2CX8CBhL", "type": "FeatureCollection", "features":[{"type":"Feature","geometry":{"type":"Point","coordinates":[9.15884470936,48.77543604444,20.013149800758705666]},"properties":{},"vcsMeta":{},"id":"mPWksRx2XR6bd7DQ8Ter9EPW"}],"featureType":"simple","vcsMeta": {"version":"1.0","altitudeMode":"clampToGround"}}
\ No newline at end of file
+{
+    "id":"LFwfxQb4d2CX8CBhL",
+    "type":"FeatureCollection",
+    "features":[
+       {
+          "type":"Feature",
+          "geometry":{
+             "type":"Point",
+             "coordinates":[
+                9.15884470936,
+                48.77543604444,
+                20.013149800758705666
+             ]
+          },
+          "properties":{
+             
+          },
+          "vcsMeta":{
+             
+          },
+          "id":"mPWksRx2XR6bd7DQ8Ter9EPW"
+       }
+    ],
+    "featureType":"simple",
+    "vcsMeta":{
+       "version":"1.0",
+       "altitudeMode":"clampToGround"
+    }
+ }
\ No newline at end of file
diff --git a/vcm/datasource-data/NoiseData/NoisePoint37833.geojson b/vcm/datasource-data/NoiseData/NoisePoint37833.geojson
new file mode 100644
index 000000000..6a4c2e7a3
--- /dev/null
+++ b/vcm/datasource-data/NoiseData/NoisePoint37833.geojson
@@ -0,0 +1,29 @@
+{
+    "id":"LFwfxQb4d2CX8CBhL",
+    "type":"FeatureCollection",
+    "features":[
+       {
+          "type":"Feature",
+          "geometry":{
+             "type":"Point",
+             "coordinates":[
+                9.16,
+                48.778,
+                20.013149800758705666
+             ]
+          },
+          "properties":{
+             
+          },
+          "vcsMeta":{
+             
+          },
+          "id":"mPWksRx2XR6bd7DQ8Ter9EPW"
+       }
+    ],
+    "featureType":"simple",
+    "vcsMeta":{
+       "version":"1.0",
+       "altitudeMode":"clampToGround"
+    }
+ }
\ No newline at end of file
diff --git a/vcm/js/noise.js b/vcm/js/noise.js
index 5e5dd9f97..7e28b5754 100644
--- a/vcm/js/noise.js
+++ b/vcm/js/noise.js
@@ -389,7 +389,7 @@ function noisemap2(areatime){
 
 function noisesens(status){
   var layerOn = ["NoiseLocation"]
-  var layerTwo = ["NoiseLocation53627"]
+  var layerTwo = ["NoiseLocation37833"]
   var layerThree = ["NoiseLocation29212"]
   var layers = framework.getLayers();
 
diff --git a/vcm/templates/custom.js b/vcm/templates/custom.js
index 64c2fc22d..7b9baa47f 100644
--- a/vcm/templates/custom.js
+++ b/vcm/templates/custom.js
@@ -662,7 +662,7 @@ function NoiseText(proj) {
 
   var layer01 = ["NoiseLocation"]
   var layer02 = ["NoiseLocation29212"]
-  var layer03 = ["NoiseLocation53627"]
+  var layer03 = ["NoiseLocation37833"]
 
   var framework = vcs.vcm.Framework.getInstance();
   var layers = framework.getLayers();
@@ -798,7 +798,7 @@ function Expert() {
 
   var layer01 = ["NoiseLocation"]
   var layer02 = ["NoiseLocation29212"]
-  var layer03 = ["NoiseLocation53627"]
+  var layer03 = ["NoiseLocation37833"]
   var layer04 = ["ProjektNord"]
   var layer05 = ["LocationFour"]
   var layer06 = ["LocationThree"]
-- 
GitLab