百度地图地址选择插件(获得详细地址和经纬度)
JS代码
$("#address").baidumapaddress({
dobackcall: function (address, wgs, baidu) {
alert("地址:" + address + "\r\n WGS84坐标:经度:" + wgs.lng + ",纬度:" + wgs.lat + "\r\n 百度坐标:" + "经度:"+baidu.lng+",纬度:"+baidu.lat);
}
});
2022-03-02 10:12:09
7KB
获得详细地址
1