Browse Source

地图版本切换回1.4

yf_zhb 2 years atrás
parent
commit
3ee7d24229

+ 1 - 1
minggao/index.html

@@ -11,6 +11,6 @@
     <!-- built files will be auto injected -->
     <script src="https://webstaticimg.oss-cn-hangzhou.aliyuncs.com/bigdata_app/js/ezuikit.js"></script>
     <!-- <script src="https://webapi.amap.com/maps?v=1.4.15&key=bd1582190896ab05afb30aa8161d14c2"></script> -->
-    <script src="https://webapi.amap.com/maps?v=2.0&key=9ffaf42e87ed317af4e775939a95081b&plugin=AMap.PolygonEditor,AMap.MarkerCluster,AMap.InfoWindow"></script>
+    <script src="https://webapi.amap.com/maps?v=1.4.15&key=9ffaf42e87ed317af4e775939a95081b&plugin=AMap.PolygonEditor,AMap.MarkerCluster,AMap.InfoWindow"></script>
   </body>
 </html>

+ 0 - 1
minggao/src/page/commandCenter/superviseAdminDetails.vue

@@ -627,7 +627,6 @@ export default {
         center: [114.052758, 22.545817],
         resizeEnable: true,
         zoom: 10,
-        lang: "en",
         mapStyle: "amap://styles/fresh",
         layers: [],
       });

+ 0 - 1
minggao/src/page/commandCenter/superviseDetails.vue

@@ -493,7 +493,6 @@ export default {
         center: [114.052758, 22.545817],
         resizeEnable: true,
         zoom: 10,
-        lang: 'en',
         mapStyle: 'amap://styles/fresh',
         layers: [],
       });

+ 0 - 1
minggao/src/page/commandCenter/taskRegulatorDetails.vue

@@ -414,7 +414,6 @@ export default {
         center: [114.052758, 22.545817],
         resizeEnable: true,
         zoom: 10,
-        lang: "en",
         mapStyle: "amap://styles/fresh",
         layers: [],
       });

+ 1 - 2
minggao/src/page/forecasting/cbd/Cbd.vue

@@ -1556,8 +1556,7 @@ export default {
       var map = new AMap.Map('mapContainer2', {
         center: this.center,
         resizeEnable: true,
-        zoom: 10,
-        lang: 'en'
+        zoom: 10
       });
       AMap.plugin(['AMap.ToolBar', 'AMap.Geocoder'], () => {
         map.addControl(new AMap.ToolBar());

+ 1 - 2
minggao/src/page/forecasting/maintain/maintain.vue

@@ -534,8 +534,7 @@ export default {
       var map = new AMap.Map('mapContainer2', {
         center: this.center,
         resizeEnable: true,
-        zoom: 10,
-        lang: 'en'
+        zoom: 10
       });
       AMap.plugin(['AMap.ToolBar', 'AMap.Geocoder'], () => {
         map.addControl(new AMap.ToolBar());

+ 2 - 2
minggao/src/page/forecasting/monthKillingLamp/index.vue

@@ -1770,8 +1770,7 @@ export default {
       var map = new AMap.Map('mapContainer2', {
         center: this.center,
         resizeEnable: true,
-        zoom: 10,
-        lang: 'en'
+        zoom: 10
       });
       AMap.plugin(['AMap.ToolBar', 'AMap.Geocoder'], () => {
         map.addControl(new AMap.ToolBar());
@@ -1832,6 +1831,7 @@ export default {
     getAddress(lnglat) {
       AMap.plugin('AMap.Geocoder', () => {
         this.geocoder.getAddress(lnglat, (status, result) => {
+          console.log(status, 'get address', result);
           if (status === 'complete' && result.info === 'OK') {
             this.address = result.regeocode.formattedAddress;
           }

+ 0 - 1
minggao/src/page/forecasting/trap/trap.vue

@@ -951,7 +951,6 @@ export default {
         center: this.center,
         resizeEnable: true,
         zoom: 10,
-        lang: 'en'
       });
       AMap.plugin(['AMap.ToolBar', 'AMap.Geocoder'], () => {
         map.addControl(new AMap.ToolBar());

+ 2 - 2
minggao/src/page/homepage/facilitydistribute.vue

@@ -522,7 +522,7 @@ export default {
         center: this.center,
         resizeEnable: true,
         zoom: 12.5,
-        lang: 'en',
+        // lang: 'en',
         mapStyle: 'amap://styles/fresh',
         layers: []
       });
@@ -544,7 +544,7 @@ export default {
       //   console.log(e);
       // });
       this.map = map;
-      // this.getbaselist();
+      this.getbaselist();
     },
     getbaselist() {
       this.pestboxloading = true;

+ 0 - 1
minggao/src/page/homepage/pestdistribute.vue

@@ -296,7 +296,6 @@ export default {
         center: this.center,
         resizeEnable: true,
         zoom: 11,
-        lang: 'en',
         mapStyle: 'amap://styles/fresh',
         layers: []
       });

+ 0 - 1
minggao/src/page/monitor/Monitor.vue

@@ -2124,7 +2124,6 @@ export default {
         center: this.center,
         resizeEnable: true,
         zoom: 10,
-        lang: "en",
       });
       AMap.plugin(["AMap.ToolBar", "AMap.Geocoder"], () => {
         map.addControl(new AMap.ToolBar());

+ 0 - 1
minggao/src/page/warning/warningrecord.vue

@@ -280,7 +280,6 @@ export default {
           center: center,
           resizeEnable: true,
           zoom: 10,
-          lang: 'en',
           mapStyle: 'amap://styles/fresh'
         });
         var marker = new AMap.Marker();