下载了H5+SDK配置了百度地图插件在本地跑起来以后
plus.geolocation.getCurrentPosition(function(p) {
alert(JSON.stringify(p))
})//提交位置信息
}, function(e) {
alert(JSON.stringify(e))
console.log('Geolocation error: ' + e.message);
},{provider:'baidu'});
提示has not amap appkey
这时要把libs 目录下所有关于高德地图的jar 删掉,map-amap.jar, AMap_3DMap_V2.4.1.jar, AMap_Services_V2.4.0.jar,AMap_Location_V3.3.0_20170118.jar,map-amap.jar,geolocation-amap.jar
2 个评论
要回复文章请先登录或注册
非良人
飞扬的都比