Browse Source

feature_20250827_地图添加搜索当前范围功能

zhujindu 3 months ago
parent
commit
65a9904bb3
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/views/deviceOutside/rangeStore.vue

+ 5 - 5
src/views/deviceOutside/rangeStore.vue

@@ -976,12 +976,12 @@ export default {
       this.getposition();
       this.getposition();
     },
     },
     getLocationData() {
     getLocationData() {
-      let currentCenter = this.CJ02BD(34.62200241805427, 112.45384320079718);
-      this.lon = currentCenter.lon;
-      this.lat = currentCenter.lat;
+      // let currentCenter = this.CJ02BD(34.62200241805427, 112.45384320079718);
+      // this.lon = currentCenter.lon;
+      // this.lat = currentCenter.lat;
 
 
-      // this.lon = this.currentCenter.lng;
-      // this.lat = this.currentCenter.lat;
+      this.lon = this.currentCenter.lng;
+      this.lat = this.currentCenter.lat;
       console.log(this.lon, this.lat);
       console.log(this.lon, this.lat);
       this.getUserOutPlaList();
       this.getUserOutPlaList();
     },
     },