diff --git a/src/app/shared/components/amap/amap-poi-picker/amap-poi-picker.component.ts b/src/app/shared/components/amap/amap-poi-picker/amap-poi-picker.component.ts index 264ee76c..fb9441d3 100644 --- a/src/app/shared/components/amap/amap-poi-picker/amap-poi-picker.component.ts +++ b/src/app/shared/components/amap/amap-poi-picker/amap-poi-picker.component.ts @@ -113,6 +113,7 @@ export class AmapPoiPickerComponent implements OnInit { radius: 1000 //范围,默认:500 }); + // 获取当前定位 this.service.getCurrentPosition().subscribe(res => { if (res) { this.selectedPOI(res.position);