From f85d0342fdb269aa6e21b76e4707bc268c6099bc Mon Sep 17 00:00:00 2001 From: ZhuDongming <773644075@qq.com> Date: Tue, 28 Apr 2020 17:10:23 +0800 Subject: [PATCH] update去除百度地图poi点击事件 --- src/main/webapp/js/moralmap.js | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/webapp/js/moralmap.js b/src/main/webapp/js/moralmap.js index 0ad00e8..6737c74 100644 --- a/src/main/webapp/js/moralmap.js +++ b/src/main/webapp/js/moralmap.js @@ -46,7 +46,8 @@ moralMap.mapInit = function () { var defaultParam = { minZoom: 12, - maxZoom: 20 + maxZoom: 20, + enableMapClick: false }; if (!!arguments[1]) { $.extend(defaultParam, arguments[1]); @@ -1052,17 +1053,16 @@ var deviceStates; var monitorPointStates; moralMap.refreshState = function (states) { - if (!monitorPointStates) { - monitorPointStates = states; - deviceStates = []; - for (var i in states) { - var state = states[i]; - for (var j in state.devices) { - var device = state.devices[j]; - deviceStates.push(device); - } + monitorPointStates = states; + deviceStates = []; + for (var i in states) { + var state = states[i]; + for (var j in state.devices) { + var device = state.devices[j]; + deviceStates.push(device); } } + listView.refreshState(deviceStates); for (var i in states) { var state = states[i]; var mpoint = moralMap.getMpoint(state.id); -- Gitblit v1.8.0