浏览代码

监控区域

王通 2 年之前
父节点
当前提交
bf3b113b01
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/views/monitor.vue

+ 4 - 4
src/views/monitor.vue

@@ -478,13 +478,13 @@ export default {
         //地图标记
         if (res.data != null && res.data.length > 0) {
           for (let i = 0; i < res.data.length; i++) {
-              lat: res.data[i].lat,
-              lng: res.data[i].lng
-            that.graphicsList.push(latlng)
+
+            that.graphicsList.push(res.data[i].lng)
+            that.graphicsList.push(res.data[i].lat)
           }
           setTimeout(() => {
             that.$refs.supermap.clearG()
-            that.$refs.supermap.setGraphicsList(this.graphicsList, 'red')
+            that.$refs.supermap.setGraphicsList(this.graphicsList, 'red',0.8)
           }, 1000)
         } else {
           that.$refs.supermap.clearG()