1.使用騰訊地圖獲取地點(diǎn)的經(jīng)緯度
官方坐標(biāo)獲?。篽ttps://lbs.qq.com/getPoint/
如:重慶解放碑
緯度:29.557284
經(jīng)度:106.577153
2.使用微信小程序的內(nèi)置地圖。
微信小程序文檔:https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.openLocation.html文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-512925.html
goParkingLot(e){
const latitude = 29.557284
const longitude = 106.577153
//打開(kāi)內(nèi)部地圖(默認(rèn)騰訊地圖)
wx.openLocation({
latitude,
longitude,
scale: 18
})
},
3.效果
文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-512925.html
到了這里,關(guān)于微信小程序地圖導(dǎo)航的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!