problem description: there is a pop-up box when the iPhone Wechat browser gets the address. After clicking cancel twice, exit the official account or exit Wechat reentry can not call the pop-up box to obtain the address again. Is there anything I can do about this?
var geolocation = new BMap.Geolocation();
geolocation.getCurrentPosition(function(r){
if(this.getStatus() == BMAP_STATUS_SUCCESS){
var mk = new BMap.Marker(r.point);
myposition_lng = r.point.lng;
myposition_lat = r.point.lat;
myposition=new BMap.Point(r.point.lng,r.point.lat);
if(r.accuracy==null){
alert("accuracy null:"+r.accuracy);
//
return;
}else{
alert(":"+r.point.lng+","+r.point.lat);
}
}
else {
alert("failed"+this.getStatus());
}
},{enableHighAccuracy: true});