|
|
|
@ -112,7 +112,7 @@
@@ -112,7 +112,7 @@
|
|
|
|
|
import { useDebounceFn } from '@vueuse/core'; |
|
|
|
|
import { EventSourcePolyfill } from 'event-source-polyfill/src/eventsource'; |
|
|
|
|
import { getAccessToken } from '/@/utils/auth'; |
|
|
|
|
import { useTimeoutFn } from '@vueuse/core' |
|
|
|
|
import { useTimeoutFn } from '@vueuse/core'; |
|
|
|
|
|
|
|
|
|
/** 类型规范统一声明定义区域 */ |
|
|
|
|
interface MapState { |
|
|
|
@ -245,8 +245,8 @@
@@ -245,8 +245,8 @@
|
|
|
|
|
key: mapState.mapConfig.amapKey, |
|
|
|
|
version: '2.0', |
|
|
|
|
plugins: ['AMap.MarkerCluster', 'AMap.Driving'] |
|
|
|
|
}).then(async AMap => { |
|
|
|
|
useTimeoutFn(() => { |
|
|
|
|
}).then(AMap => { |
|
|
|
|
useTimeoutFn(async () => { |
|
|
|
|
// 创建地图实例 |
|
|
|
|
map = new AMap.Map(instance.refs.mapview, mapState.mapConfig.options); |
|
|
|
|
map.plugin(['AMap.ToolBar', 'AMap.MapType', 'AMap.ControlBar', 'AMap.Scale'], () => { |
|
|
|
|