aruis / cordova-plugin-baidumaplocation

Get device current Location from Baidu Map
https://www.npmjs.com/package/cordova-plugin-baidumaplocation
Apache License 2.0
139 stars 69 forks source link

4.X版本无法获取坐标信息(回调函数不执行) #66

Open wypcy opened 5 years ago

wypcy commented 5 years ago

安装4.X版本后,在typescript代码中调用baidumap_location.getCurrentPosition(success, error),回调函数不执行,调试后发现插件配置信息有问题,plugin.xml中对于BaiduMapLocation.java源文件的目标位置设置有问题,target-dir的值应该为:"src/com/aruistar/cordova/baidumap",而不是"app/src/com/aruistar/cordova/baidumap"

kirin-yuen commented 5 years ago

Hi, 参考 #64 的解决方法