Issue with (mapClick) in 3.0.0-beta.0
See original GitHub issueIssue description
The event mapClick return a character “c”, when a click is made in the map.
Steps to reproduce and a minimal demo of the problem
The reproduction is very simple:
In HTML
<agm-map (mapClick)="addMarker($event)" [latitude]="lat" [longitude]="lng" [zoom]="15">
In TS
addMarker($event) {
console.log($event); //prints 'c'
}
Current behavior
Return ‘c’ when a click over the map happens.
Expected/desired behavior
Return the event click which fired when a click over the map happens.
angular-google-maps, Angular, & any other relevant dependency versions
angular-google-maps: 3.0.0-beta.0 angular: 10.0.5
Other information
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top Results From Across the Web
Issue with (mapClick) in 3.0.0-beta.0 #1867 - GitHub
Issue description The event mapClick return a character "c", when a click is made in the map. Steps to reproduce and a minimal...
Read more >Angular Google Maps mapClick() event not working
It's a bug in the latest published version. 3.0.0-beta.0. It's apparently been fixed but not published. You could revert to ^1.1.0 .
Read more >changelog - @agm/core
3.0.0-beta.0 (2020-07-20). Bug Fixes ... Add placeId to map click events (34f651b), closes #691 #1539; Support for Transit Layer (0f71222) ...
Read more >@agm/core@3.0.0-beta.0 - jsDocs.io
Documentation for npm package @agm/core@3.0.0-beta.0 - jsDocs.io. ... mapClick: EventEmitter<any>; ... Open an issue for this package.
Read more >React - LeafletControlGeocoder: Get location on map click event
React - LeafletControlGeocoder: Get location on map click event. Click on the map and get the address using react-leaflet & leaflet-control-geocoder.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
duplicate of #1845 Issue was fixed, just the new version was not yet published to NPM
Correct, installing from github is not supported. I have asked @SebastianM to publish new changes, but so far didn’t get an ansewr.