var point
= new BMap.Point(longitude
,latitude
);
var gc
= new BMap.Geocoder();
gc
.getLocation(point
, function (rs
) {
$rootScope
.addressCity
= rs
.address
;
$scope
.addressCity
= ($rootScope
.addressCity
.split('省')[1]).split('市')[0];
});
转载请注明原文地址: https://win8.8miu.com/read-8723.html