<template> <view> <viewclass="page-body"> <viewclass="page-section page-section-gap"> <mapstyle="width:100%;height:300px;":latitude="latitude":longitude="longitude":markers="covers"> </map> </view> </view> </view></template>
export default { data() { return { title: 'map', latitude: 39.909, longitude: 116.39742, covers: [{ latitude: 39.909, longitude: 116.39742, iconPath: '../../../static/location.png' }, { latitude: 39.90, longitude: 116.39, iconPath: '../../../static/location.png' }] } }, methods: { }}
这里是地图插件
网友评论