南京网站设计公司哪家好,快站优惠券去哪里找,导航页面wordpress代码,wordpress flat themeUniapp在浏览器拉起导航 最近涉及到要在浏览器中拉起导航#xff0c;对目标点进行路线规划等功能#xff0c;踩了一些坑#xff0c;找到了使用方法。#xff08;浏览器拉起#xff09; 效果展示
可以拉起三大平台及苹果导航 点击选中某个导航#xff0c;会携带经纬度跳转…Uniapp在浏览器拉起导航 最近涉及到要在浏览器中拉起导航对目标点进行路线规划等功能踩了一些坑找到了使用方法。浏览器拉起 效果展示
可以拉起三大平台及苹果导航 点击选中某个导航会携带经纬度跳转到web端的导航界面点击去导航会拉起本机的导航软件 高德地图 百度地图 苹果地图 腾讯地图 代码实现 项目使用的是VUEuView将这部分代码嵌入到页面中根据使用逻辑进行相关的数据配置和调用就可以实现地图拉起导航了。 经度 longitude
纬度 latitude
导航目的地显示的名称 name
//高德地图openGaodeMap(longitude, latitude, name) {window.location.href https://uri.amap.com/marker?position${longitude},${latitude}name${name}srcmypagecoordinategaodecallnative1;},//百度地图openBaiduMap(longitude, latitude, name) {window.location.href http://api.map.baidu.com/marker?location latitude , longitude title name contentoutputhtml},//腾讯地图openTengXunMap(longitude, latitude, name) {window.location.href http://apis.map.qq.com/uri/v1/marker?markercoord: latitude , longitude ;addr: name },//Apple地图openAppleMap(longitude, latitude, name) {window.location.href http://maps.apple.com/?q%e6%95%b0%e5%ad%97%e5%a4%a9%e5%a0%82ll${latitude},${longitude}spn0.008766,0.019441;},