Bladeren bron

互联网-社管一张图-周边分析,地图没有依据周边范围进行自动缩放(确保周边范围能完整且居中的在地图上进行展示)

CzRger 1 jaar geleden
bovenliggende
commit
f5007d6efb
1 gewijzigde bestanden met toevoegingen van 1 en 2 verwijderingen
  1. 1 2
      src/views/gis/layout/tools/analysis.vue

+ 1 - 2
src/views/gis/layout/tools/analysis.vue

@@ -111,8 +111,6 @@ import * as style from "ol/style";
 import * as ol from "ol";
 import SelectChartCom from "@/views/gis/layout/tools/select-chart.vue";
 import * as turf from "@turf/turf";
-import axios from "axios";
-import {formatPosition} from "@/utils/easyMap";
 
 export default defineComponent({
   name: '',
@@ -296,6 +294,7 @@ export default defineComponent({
           center: state.cusTransfer.draw.center,
           wkt: state.cusTransfer.draw.wkt
         })
+        that.$easyMap.getShapeView(props.map, that.$easyMap.formatPosition.wpnTcpn(state.cusTransfer.draw.wkt)[0])
       }
     }
     const powerTableFilterCpt = computed(() => {