地图图标路径修改
This commit is contained in:
@ -51,9 +51,7 @@
|
||||
import api from "@/api/controlCenter/historyjectory/index"
|
||||
import { formatTimestampToHM } from "@/utils/function"
|
||||
import { useRoute } from "vue-router"
|
||||
import { ref, onMounted, onUnmounted, watch } from "vue"
|
||||
import { ElMessage } from "element-plus"
|
||||
|
||||
import strongLightDefault from '@/assets/images/position_ico.png';
|
||||
// 添加AMap类型声明
|
||||
declare global {
|
||||
interface Window {
|
||||
@ -107,7 +105,7 @@ const initMap = () => {
|
||||
position: [20, 20],
|
||||
icon: new AMap.Icon({
|
||||
size: new AMap.Size(40, 40),
|
||||
image: '/src/assets/images/position_ico.png',
|
||||
image: strongLightDefault,
|
||||
imageSize: new AMap.Size(40, 40),
|
||||
}),
|
||||
anchor: 'center',
|
||||
|
Reference in New Issue
Block a user