From 86ad93ea04241928a06b06ab3fbe1c92faef9106 Mon Sep 17 00:00:00 2001 From: ZhuDongming <773644075@qq.com> Date: Mon, 29 Jun 2020 16:39:14 +0800 Subject: [PATCH] update --- src/main/webapp/js/newmoralmap.js | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/webapp/js/newmoralmap.js b/src/main/webapp/js/newmoralmap.js index c45648a..b7842a8 100644 --- a/src/main/webapp/js/newmoralmap.js +++ b/src/main/webapp/js/newmoralmap.js @@ -743,13 +743,13 @@ } else if (windSpeed > 17.1) { speedLevel = 8; } - } - if (speedLevel == 0) { - moralMap.removeOverlay(this); - } else { - var iconObj = _getWindIcon(speedLevel); - this.setIcon(iconObj); - this.setRotation(windDir); + if (speedLevel == 0) { + moralMap.removeOverlay(this); + } else { + var iconObj = _getWindIcon(speedLevel); + this.setIcon(iconObj); + this.setRotation(windDir); + } } }, getOption: function () { -- Gitblit v1.8.0