From b3e3600c9b6ff83e11dbb9f08441832769532999 Mon Sep 17 00:00:00 2001
From: lizijie <lzjiiie@163.com>
Date: Wed, 14 Aug 2019 13:08:27 +0800
Subject: [PATCH] 修改AQI计算工具类
---
src/main/webapp/view/uavTrajectory.jsp | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/main/webapp/view/uavTrajectory.jsp b/src/main/webapp/view/uavTrajectory.jsp
index 64b7d2c..74785b8 100644
--- a/src/main/webapp/view/uavTrajectory.jsp
+++ b/src/main/webapp/view/uavTrajectory.jsp
@@ -163,9 +163,11 @@
var arrowLength;//���������������������
if (distance <= 5) {
arrowLength = 0;
- } else if (distance > 5 && distance <= 10) {
+ } else if (distance > 5 && distance <= 20) {
arrowLength = 2;
- } else if (distance <= 100) {
+ } else if (distance > 20 && distance <= 50) {
+ arrowLength = 3;
+ } else if (distance > 50 && distance <= 100) {
arrowLength = 5;
} else if (distance > 100 && distance <= 200) {
arrowLength = 10;
@@ -200,7 +202,7 @@
startPoint,
endPoint
],
- {strokeColor: "#5298FF", strokeWeight: 5, strokeOpacity: 1}
+ {strokeColor: "#5298FF", strokeWeight: 4, strokeOpacity: 1}
);
if (i < trackPoints.length - 1 && trackPoints.length > 1) {
map.addOverlay(polyline);// ���������������
@@ -367,7 +369,7 @@
var pointArrow1 = map.pixelToPoint(new BMap.Pixel(pixelX1, pixelY1));
var pointMiddle = map.pixelToPoint(new BMap.Pixel(poMiddleX, poMiddleY));
var Arrow = new BMap.Polyline([pointArrow, pointMiddle, pointArrow1],
- {strokeColor: "#5298FF", strokeWeight: 5, strokeOpacity: 1});
+ {strokeColor: "#5298FF", strokeWeight: 4, strokeOpacity: 1});
map.addOverlay(Arrow);
}
};
--
Gitblit v1.8.0