uniapp map apk show-location失效客户端处理方式

70 阅读1分钟

uniapp小程序map写上show-location可以显示当前位置绿色点到小程序上 但是运行在apk环境时没有当前点需要特殊写下 ask.dcloud.net.cn/question/75…

  $map = uni.createMapContext('map1', this);  
            $appMap = $map.$getAppMap();  
            $appMap.showUserLocation(true)