ediot
This commit is contained in:
@ -113,6 +113,7 @@ export class AmapPoiPickerComponent implements OnInit {
|
|||||||
radius: 1000 //范围,默认:500
|
radius: 1000 //范围,默认:500
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// 获取当前定位
|
||||||
this.service.getCurrentPosition().subscribe(res => {
|
this.service.getCurrentPosition().subscribe(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
this.selectedPOI(res.position);
|
this.selectedPOI(res.position);
|
||||||
|
|||||||
Reference in New Issue
Block a user