|
在使用下面代码调用百度地图时,只取到经纬度,取不到地址和坐标类型(在微信中使用)
Model.prototype.locationClick = function(event) {
var self = this;
var gpsDtd = self.getLocation();
gpsDtd.done(function(position) {
alert("地址:"+position.address);
alert("经纬度:"+position.latitude + "," + position.longitude);
alert("坐标系:"+position.coorType);
bmap.marker({
location : position.latitude + "," + position.longitude,
title : position.address,
content : "",
src : "justep"
});
});
};
|
|