mappicker
地图选择器,主要用于在地图上选址
API
pick
since v28.0.2
pick(params, callback) @params
@callback
result {string}
: 结果三种类型success
,cancel
,error
province {string}
: 省city {string}
: 市district {string}
: 区town {string}
: 街道address {string}
: 地址lat {number}
: 纬度lng {number}
: 经度locationType {string}
: 坐标系类型(GCJ-02)
const mappicker = weex.requireModule('mappicker');
mappicker.pick({
}, event => {
if (event.result === 'success') {
this.province = event.province;
this.city = event.city;
this.district = event.district;
this.town = event.town;
this.address = event.address;
this.lat = event.lat;
this.lng = event.lng;
this.locationType = event.locationType;
}
});