<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 {
data() {
return {
title: 'map',
latitude: 39.909,
longitude: 116.39742,
covers: [{
latitude: 39.909,
longitude: 116.39742,
iconPath: '/static/logo.png',
rotate:50
}, {
latitude: 39.90,
longitude: 116.39,
iconPath: '/static/logo.png',
rotate:310
}]
}
},
methods: {
}
}
</script>
图1位app,图2位微信小程序的效果图