:longitude="longitude"
style="width: 100%; height: 1500rpx;"
scale="11"
:markers="markers"
:show-location="true"
@markertap="markertap"
@updated=‘mapUpdated‘
@tap=‘closeMapMarker‘
>
export default{
data() {return{//
longitude: 115.45875,
latitude:38.87757,
mapInfo: [],
markers: [],
mapKey: ‘ddd9eea9898cbe10a00255de5189bc398‘}
},
created() {
console.log(‘created=============map‘)
},
onLoad() {
console.log(‘onLoad---‘);// this.amapPlugin = newamap.AMapWX({
key:this.mapKey //该key 是在高德中申请的微信小程序key
});const that = thisthat.amapPlugin.getRegeo({