王通 2 vuotta sitten
vanhempi
commit
bf3b113b01
1 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  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()