From ddbb4fa5b271d4eac49ee94f7455240176c36dc8 Mon Sep 17 00:00:00 2001
From: wangzhibo <wangzhibo@shsening.com>
Date: 星期四, 30 九月 2021 15:39:01 +0800
Subject: [PATCH] add color for top10 list
---
widgetsTS/widget_summary/view.js | 2 +-
widgetsTS/widget_summary/widget.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/widgetsTS/widget_summary/view.js b/widgetsTS/widget_summary/view.js
index 353ba9a..a0d03e0 100644
--- a/widgetsTS/widget_summary/view.js
+++ b/widgetsTS/widget_summary/view.js
@@ -92,7 +92,7 @@
for (var i = 0; i < tableData.length; i++) {
var j = i + 1;
var topObj = tableData[i];
- var _tr = "<tr _siteid='" + topObj.code + "' _lon='" + topObj.lon + "' _lat='" + topObj.lat + "' onclick='locateAndShowDetail(this)' onmouseover='over(this)' onmouseout='out(this)' ><td>" + j + "</td><td>" + topObj.code + "</td><td>" + topObj.name + "</td><td>" + topObj[current_selected_monitor_qindex] + "</td></tr>"
+ var _tr = "<tr _siteid='" + topObj.code + "' _lon='" + topObj.lon + "' _lat='" + topObj.lat + "' onclick='locateAndShowDetail(this)' onmouseover='over(this)' onmouseout='out(this)' ><td>" + j + "</td><td>" + topObj.code + "</td><td>" + topObj.name + "</td><td><font color='"+getLayerPointColorByQindexandValue(current_selected_monitor_type,current_selected_monitor_qindex,topObj[current_selected_monitor_qindex])+"'>" + topObj[current_selected_monitor_qindex] + "</font></td></tr>"
$("#top10Tb").append(_tr);
}
diff --git a/widgetsTS/widget_summary/widget.js b/widgetsTS/widget_summary/widget.js
index 03d236d..70bfd19 100644
--- a/widgetsTS/widget_summary/widget.js
+++ b/widgetsTS/widget_summary/widget.js
@@ -33,7 +33,7 @@
}
locateAndHighlight(lon,lat){
- this.map.setCameraView({ y: lat, x: lon, z: 10000, heading: 5.5, pitch: -51.9, roll: 0 },{ duration: 5 });
+ this.map.setCameraView({ y: lat, x: lon, z: 30000, heading: 3, pitch: -68, roll: 0 },{ duration: 3 });
}
--
Gitblit v1.9.1