From 5d26acb88448b966cba23aa3dab6cd95dfd7c335 Mon Sep 17 00:00:00 2001
From: wangzhibo <wangzhibo@shsening.com>
Date: 星期一, 04 十月 2021 11:25:25 +0800
Subject: [PATCH] bug fix

---
 js/function_1001.js |   37 ++++++++++++++++++++-----------------
 1 files changed, 20 insertions(+), 17 deletions(-)

diff --git a/js/function_1001.js b/js/function_1001.js
index f8b6dc3..045ecc1 100644
--- a/js/function_1001.js
+++ b/js/function_1001.js
@@ -4,13 +4,13 @@
 
 var allLayer_color_nodata = '#C0C0C0';
 var color_list_1001 = ['#0EE839', '#FEFE23', '#FD9D00', '#F70F0D', '#8A0B73', '#88041E'];
-var color_list_1002 = ['#0EE839', '#FEFE23', '#F70F0D'];
-var color_list_1003 = ['#0dd4f7', '#078901', '#FFFF00', '#fe7c23', '#F70F0D', '#88041E'];
+var color_list_1002 = ['#0dd4f7', '#078901', '#FFFF00', '#fe7c23', '#F70F0D', '#88041E'];
+var color_list_1003 = ['#0EE839', '#FEFE23', '#F70F0D'];
 var color_list_1004_and_other = ['#0dd4f7', '#23fe9f', '#078901', '#d4fe23', '#FFFF00', '#febf23', '#fe7c23', '#F70F0D', '#8A0B73', '#88041E'];
 
 var qindex_range_list_1001 = { 'pm25': [35, 75, 115, 150, 250], 'pm10': [50, 150, 250, 350, 420], 'no2': [100, 200, 700, 1200, 2340], 'co': [5, 10, 35, 60, 90] };
-var qindex_range_list_1002 = { 'tsp': [0.2, 0.5] };
-var qindex_range_list_1003 = { 'pm25': [10, 20, 50, 80, 100], 'pm10': [20, 50, 80, 150, 200], 'no2': [25, 50, 100, 150, 300], 'co': [0.5, 0.6, 0.8, 1, 1.5] };
+var qindex_range_list_1002 = { 'pm25': [10, 20, 50, 80, 100], 'pm10': [20, 50, 80, 150, 200], 'no2': [25, 50, 100, 150, 300], 'co': [0.5, 0.6, 0.8, 1, 1.5] };
+var qindex_range_list_1003 = { 'tsp': [0.2, 0.5] };
 var qindex_range_list_1004_and_other = { 'pm25': [15, 35, 50, 75, 150, 250, 350, 500, 700], 'pm10': [20, 50, 100, 150, 200, 300, 500, 800, 1000], 'no': [10, 30, 60, 100, 200, 500, 1000, 2000, 3500], 'no2': [20, 80, 110, 150, 200, 250, 300, 400, 500], 'nox': [80, 110, 130, 150, 200, 500, 1000, 2000, 5000], 'co': [0.2, 0.4, 0.6, 0.8, 1, 1.5, 2.5, 4, 6] };
 // for change color locally.
 var data_list_1001;
@@ -30,7 +30,7 @@
       "styles": item.style_prefix + item.style_selected,
       "transparent": "true",
       "format": "image/png",
-      "viewparams": "userid:" + mars3d.global_variables.userid + ";datatime:" + mars3d.global_variables.queryDataTStartGeo
+      "viewparams": "userid:" + mars3d.global_variables.userid +";regiontype:" + item.regiontype + ";datatime:" + mars3d.global_variables.queryDataTStartGeo
     },
     center: { "lat": 30.487351, "lng": 121.613269, "alt": 54033, "heading": 359, "pitch": -40 },
     noCenter: true,
@@ -183,9 +183,11 @@
 
   guokongLayer.on(mars3d.EventType.click, function (event) {
     console.log("鐩戝惉layer锛屽崟鍑讳簡鐭㈤噺瀵硅薄", event);
-    console.log(event.graphic?.attr)
+    console.log(event.graphic)
     var item = event.graphic?.attr;
     //haoutil.msg('鍗曞嚮浜嗭細' + item['楂樻牎鍚嶇О'])
+    mars3d.global_variables.tmpHighlightGraphic = event.graphic;
+
   });
 
   guokongLayer.bindPopup(bindPopupFunction);
@@ -220,25 +222,26 @@
         color: clr,
         heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
         highlight: {
-          type: "divLightPoint",
-          diffHeight: item[(tmplayer.options.style_selected).toUpperCase()],
-          material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.CircleWave, {
-            color: clr,
-            count: 3,
-            speed: 20,
-          }),
-        },
-        distanceDisplayCondition: new Cesium.DistanceDisplayCondition(0, 200000), //鎸夎璺濊窛绂绘樉绀�
+          type: "circleP",
+          style: {
+            radius: 2000,
+            material: mars3d.MaterialUtil.createMaterial(mars3d.MaterialType.ScanLine, {
+              color: new Cesium.Color(1.0, 1.0, 0.0, 1.0),
+              speed: 10,
+            }),
+            clampToGround: true, //鏄惁璐村湴
+          }
+        }
       },
       show: true,
       attr: item,
     });
     tmplayer.addGraphic(graphic);
   }
-
-
 }
 
+
+
 function getLayerPointColorByQindexandValue(layerid, qindex, value) {
 
   if (!value || value == null || value == 'null') {

--
Gitblit v1.9.1