微信小程序地图使用 https://lbs.qq.com/dev/console/application/mine
登陆腾讯
配置需要使用地图的项目
onShow() {
let pages = getCurrentPages(); //地图地址回显
let currPage = pages[pages.length-1];
this.circleid = currPage.data.circleid;//传递的参数
this.circleName = currPage.data.circleName
const chooseLocation = requirePlugin('chooseLocation');
const location = chooseLocation.getLocation(); // 如果点击确认选点按钮,则返回选点结果对象,否则返回null
// console.log("您所选择的位置:", location);
if(location){
this.addressName = location.name;
this.latitude = location.latitude;
this.longitude = location.longitude
}
},