From 712a73114593e64ae3126f9bb531d968f3581394 Mon Sep 17 00:00:00 2001 From: ZhuDongming <773644075@qq.com> Date: Tue, 30 Jun 2020 10:31:23 +0800 Subject: [PATCH] update --- src/main/webapp/js/newmoralmap.js | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/webapp/js/newmoralmap.js b/src/main/webapp/js/newmoralmap.js index b7842a8..95a4695 100644 --- a/src/main/webapp/js/newmoralmap.js +++ b/src/main/webapp/js/newmoralmap.js @@ -705,10 +705,10 @@ function _getWindIcon(speedLevel) { speedLevel = speedLevel == null ? 0 : speedLevel; - var icon = _option["icon"]; - var url = icon["url"] + speedLevel + ".png"; - return new BMap.Icon(url, new BMap.Size(icon["width"], icon["height"]), { - imageSize: new BMap.Size(icon["width"], icon["height"]) + var windIcon = _option["windIcon"]; + var windUrl = windIcon["url"] + speedLevel + ".png"; + return new BMap.Icon(windUrl, new BMap.Size(windIcon["width"], windIcon["height"]), { + imageSize: new BMap.Size(windIcon["width"], windIcon["height"]) }); } @@ -863,11 +863,11 @@ } } } - var icon = {}; - icon["url"] = "/img/icoWind0"; - icon["width"] = 25; - icon["height"] = 25; - option["icon"] = icon; + var windIcon = {}; + windIcon["url"] = "/img/icoWind0"; + windIcon["width"] = 25; + windIcon["height"] = 25; + option["windIcon"] = windIcon; var windMarker = new moralMap.WindMarker(option, moralMap); moralMap.putDevice(option['mac'], windMarker); var refreshWindMarker = windMarker.refreshWindDir; -- Gitblit v1.8.0