riku
2024-05-09 75aeb4e63339b60f9559af984c7d9f87a7cba24a
src/utils/map/index_old.js
@@ -1,5 +1,8 @@
/* eslint-disable no-undef */
// import '@/lib/AMap';
import { useToolboxStore } from '@/stores/toolbox';
const toolboxStore = useToolboxStore();
var mapInitDone = false;
var onMapMountedEvents = [];
@@ -58,6 +61,7 @@
  satellite = new AMap.TileLayer.Satellite();
  satellite.show();
  map.add([satellite]);
  toolboxStore.featuresStatus = true;
  _initControlbar();
  // _initMouseTool();
@@ -73,6 +77,7 @@
    }
  });
  map.addControl(controlbar);
  toolboxStore.controlbarStatus = true;
}
// 鼠标绘图初始化