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(); });