html | |
<map name="" latitude="{{la}}" longitude="{{lo}}" markers="{{markers}}" circles="{{circles}}" class="map"></map> | |
js | |
/** | |
* 页面的初始数据 | |
*/ | |
data: { | |
la: '', | |
lo: '', | |
markers: [] | |
}, | |
/** | |
* 生命周期函数--监听页面加载 | |
*/ | |
onLoad(options) { | |
this.data.la = options.latitude | |
this.data.lo = options.longitude | |
this.setData({ | |
la: this.data.la, | |
lo: this.data.lo, | |
markers: [{ | |
latitude: options.latitude, | |
longitude: options.longitude | |
}], | |
}) | |
}, |
微信小程序地图
手机APP/开发
502
0
0
2022-09-12
登录后可点赞和收藏
标签
微信小程序
登录后可点赞和收藏