这是我的代码,但它不起作用。当我单击地图时,它显示错误:无法读取未定义的属性“纬度”
<agm-map
style="height: 700px"
[latitude]="lat"
[longitude]="lng"
[zoom]="zoom"
(mapClick)="placeMarker($event)"
>
Ts file
placeMarker($event) {
console.log($event.coords.lat);
console.log($event.coords.lng);
}```