We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue description (mapClick) event is sending a character 'c' instead an Event.
Steps to reproduce and a minimal demo of the problem npm i @agm/core --save
// app.module.ts imports: [ AgmCoreModule.forRoot({ apiKey: 'abc' }) ]
// another.module.ts imports: [ AgmCoreModule ]
// another.component.html <agm-map (mapClick)="onClick($event)">
// another.component.ts onClick(event) { console.log(event); }
Current behavior printing 'c'
Expected/desired behavior event: { coords: { lat: number, lng: number } }
angular-google-maps, Angular, & any other relevant dependency versions Node: 10.21.0 Angular: 10.0.7
The text was updated successfully, but these errors were encountered:
I had same issue, to fix just install previous version which is 1.1.0
Sorry, something went wrong.
Please search existing issues before reporting. Duplicate of #1845
Its not working in angular 12, it gives errors in compilation
No branches or pull requests
Issue description
(mapClick) event is sending a character 'c' instead an Event.
Steps to reproduce and a minimal demo of the problem
npm i @agm/core --save
// app.module.ts
imports: [ AgmCoreModule.forRoot({ apiKey: 'abc' }) ]
// another.module.ts
imports: [ AgmCoreModule ]
// another.component.html
<agm-map (mapClick)="onClick($event)">
// another.component.ts
onClick(event) {
console.log(event);
}
Current behavior
printing 'c'
Expected/desired behavior
event: {
coords: {
lat: number,
lng: number
}
}
angular-google-maps, Angular, & any other relevant dependency versions
Node: 10.21.0
Angular: 10.0.7
The text was updated successfully, but these errors were encountered: