From 219711cd10f9fca110c4a7c67eddc3995b6672a3 Mon Sep 17 00:00:00 2001 From: WenG <450292408@qq.com> Date: Tue, 1 Sep 2020 17:24:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/static/route/check/get-map-check.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/static/route/check/get-map-check.html b/src/main/resources/static/route/check/get-map-check.html index 32fd2f4..9a3224f 100644 --- a/src/main/resources/static/route/check/get-map-check.html +++ b/src/main/resources/static/route/check/get-map-check.html @@ -399,8 +399,9 @@ }); map.addOverlay(new CheckMarker(item.checkId, item.enterpriseId, item.enterpriseName, photoArray, checkPoint)); } - map.setViewport(checkPointArray); - console.log(checkPointArray) + setTimeout(function() { + map.setViewport(checkPointArray); + }, 1000); }, function(code, msg) { top.dialog.msg(data.msg); }, function() { @@ -414,7 +415,6 @@ initData(); // 事件 - 搜索 $(document).on('click', '#search', function() { - initData(); });