微信小程序点击地图打开高德地图、百度地图 |
您所在的位置:网站首页 › 百度地图导航多个目的地 › 微信小程序点击地图打开高德地图、百度地图 |
1.小程序中使用map组件map | 微信开放文档 2.使用微信内置地图查看位置wx.openLocation,这一步便是打开地图软件的关键 官文地址:wx.openLocation(Object object) | 微信开放文档 写完下面方法即可调起选择地图软件弹窗了 goMap() { wx.openLocation({ latitude: Number(this.info.latitude), longitude: Number(this.info.longitude), name: this.info.title, address: this.info.province_name + this.info.city_name + this.info.area_name + this.info.address, scale: 28 }) }, |
今日新闻 |
点击排行 |
|
推荐新闻 |
图片新闻 |
|
专题文章 |
CopyRight 2018-2019 实验室设备网 版权所有 win10的实时保护怎么永久关闭 |