kaiyu
2020-10-19 2bcbf240bd4419d01232967915295df61a8e1d84
src/main/webapp/view/newmap.jsp
@@ -370,7 +370,6 @@
<textarea id="close" hidden></textarea>
<div class="main_body">
    <%--<input  id="button" type="button" value="点击" onclick="getJs();">--%>
    <div class="tools_box">
        <div class="charts_btn">
        </div>
@@ -705,6 +704,7 @@
            //获得消息事件
            ws.onmessage = function (msg) {
                // $("#searchParam").val(JSON.parse(msg.data));
                //moralMap.getRoad(JSON.parse(JSON.parse(msg.data)),regionCode);
                moralMap.refreshWindDir(JSON.parse(JSON.parse(msg.data)));
                /*  if (moralMap.showSensors && typeof (moralMap.showSensors) == "function") {
                      moralMap.showSensors(JSON.parse(JSON.parse(msg.data)));
@@ -712,6 +712,7 @@
                if ($("#close").html() == "CloseMq") {
                    ws.close();
                }
                moralMap.showSensors(JSON.parse(JSON.parse(msg.data)));
            };
            //关闭事件
@@ -722,7 +723,6 @@
            ws.onerror = function () {
                $("#close").html("websocket关闭错误");
            };
        }
    })(jQuery);
@@ -839,9 +839,6 @@
        } else if ("RefreshState" == methodName) {
            var states = jsonData.states;
            moralMap.refreshState(states);
        } else if ("DeliverSensors" == methodName) {
            $("#close").html(methodName);
            moralMap.showSensors(jsonData);
        } else if ("CloseMq" == methodName) {
            $("#close").html(methodName);
        }