地图图标路径修改
This commit is contained in:
@ -37,8 +37,8 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { deviceVO } from '@/api/controlCenter/controlPanel/types';
|
||||
import { defineProps, ref, watch, onMounted, onUnmounted, nextTick } from 'vue';
|
||||
import { useRouter, useRoute } from 'vue-router';
|
||||
import strongLightDefault from '@/assets/images/position_ico.png';
|
||||
const props = defineProps({
|
||||
deviceList: {
|
||||
type: Array as PropType<deviceVO[]>,
|
||||
@ -151,7 +151,7 @@ const renderMarkers = () => {
|
||||
map: mapInstance,
|
||||
icon: new AMap.Icon({
|
||||
size: new AMap.Size(32, 32), // Marker显示尺寸
|
||||
image: '/src/assets/images/position_ico.png',
|
||||
image: strongLightDefault,
|
||||
imageSize: new AMap.Size(32, 32)
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user