Hwf hace 7 meses
padre
commit
8755b89388
Se han modificado 1 ficheros con 3 adiciones y 18 borrados
  1. 3 18
      src/components/Map/index.vue

+ 3 - 18
src/components/Map/index.vue

@@ -44,10 +44,9 @@ import {
   getMiningOperationsDetails,
   getEmergencyTransportResourcesDetails,
   getEmergencyDisasterInfoOfficerDetails,
-  getMidmapDzzhDetails, getVehicleDetails, getMDPUnitDetails
-} from "@/api/globalMap/spatialAnalysis";
   getMidmapDzzhDetails,
-  getVehicleDetails
+  getVehicleDetails,
+  getMDPUnitDetails
 } from '@/api/globalMap/spatialAnalysis';
 import { pointDetailTemplate } from '@/views/globalMap/data/mapData';
 import ElementResizeDetectorMaker from 'element-resize-detector';
@@ -92,21 +91,7 @@ let AMap, map, scale;
 // 鼠标绘制工具
 const drawTool = useDrawTool();
 // 初始化地图
-const {
-  getAMap,
-  getMap,
-  switchMap,
-  addMarker,
-  addSearchMarker,
-  clearMarker,
-  getMarkers,
-  getScale,
-  showInfo,
-  hideInfo,
-  handleHover,
-  creatMask,
-  trackPlayback
-} = useAMap({
+const mapUtils = useAMap({
   key: '30d3d8448efd68cb0b284549fd41adcf', // 申请好的Web端开发者Key,首次调用 load 时必填
   version: '2.0', // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
   pitch: mapState.isThreeDimensional ? 45 : 0,