| | |
| | | { |
| | | "name" : "三个身边", |
| | | "appid" : "__UNI__DB035F5", |
| | | "appid" : "__UNI__4B73B99", |
| | | "description" : "", |
| | | "versionName" : "1.0.0", |
| | | "versionCode" : "100", |
| | |
| | | var myGeo = new BMapGL.Geocoder();
|
| | | // 根据坐标得到地址描述
|
| | | myGeo.getLocation(new BMapGL.Point(longitude, latitude), (result) => {
|
| | | that.city = result.addressComponents.city
|
| | | that.locationList = result.surroundingPois.map((item, index) => {
|
| | | item.id = index + 1
|
| | | return item
|
| | |
| | | var myGeo = new BMapGL.Geocoder();
|
| | | // 根据坐标得到地址描述
|
| | | myGeo.getLocation(new BMapGL.Point(e.latlng.lng, e.latlng.lat), (result) => {
|
| | | console.log(result,'result');
|
| | | this.city = result.addressComponents.city
|
| | | if( result.surroundingPois.length>0){
|
| | | this.locationList = result.surroundingPois.map((item, index) => {
|
| | | item.id = index + 1
|