如果是这样,有人可以帮助我在标记上创建点击事件我试过这个:
<sebm-google-map-marker *ngFor="#location of locations" (click)="updateDiv()" [latitude]="location.lat" [longitude]="location.lng" [label]="location.id"> updateDiv() { console.log('check'); }
但它似乎不起作用?我究竟做错了什么?
<sebm-google-map-marker *ngFor="#location of locations" (click)="updateDiv()" [latitude]="location.lat" [longitude]="location.lng" [label]="location.id"> updateDiv() { console.log('check'); }
但它似乎不起作用?我究竟做错了什么?
<sebm-google-map-marker *ngFor="#location of locations" (markerClick)="updateDiv()" [latitude]="location.lat" [longitude]="location.lng" [label]="location.id"> updateDiv() { console.log('check'); }
请参阅“输出”部分中的此文档:
> https://angular-maps.com/docs/api/latest/ts/core/SebmGoogleMapMarker-directive.html