question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with (mapClick) in 3.0.0-beta.0

See original GitHub issue

Issue 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:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
ghostcommented, Aug 25, 2020

duplicate of #1845 Issue was fixed, just the new version was not yet published to NPM

1reaction
ghostcommented, Aug 26, 2020

Correct, installing from github is not supported. I have asked @SebastianM to publish new changes, but so far didn’t get an ansewr.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found