<template>
<view>
<view class="page-body">
<view class="page-section page-section-gap">
<map style="width: 100%; height: 300px;" :latitude="latitude" :longitude="longitude" :markers="covers">
</map>
</view>
</view>
</view>
</template>
<script>
export default {
props: {
show: {
type: Boolean,
default: false
},
},
data() {
return {
id: 0, // 使用 marker点击事件 需要填写id
title: 'map',
latitude: 39.909,
longitude: 116.39742,
covers: [{
width:10,
height:10,
latitude: 39.909,
longitude: 116.39742,
iconPath: require("@/static/icon/landmarkscon1.png")
// iconPath: require("@/static/icon/landmark.png")
}, {
latitude: 39.90,
longitude: 116.39,
iconPath: require("@/static/icon/landmark.png")
}]
}
},
methods: {
}
}
</script>
<style>
</style>
h***@163.com
大佬解决了吗,我快被折磨死了
2023-09-12 17:47
TLZ (作者)
回复 h***@163.com: 不行还是改图片大小
2023-09-15 15:49