Angular-google-maps: Issue with (mapClick) in 3.0.0-beta.0

Created on 22 Aug 2020  路  6Comments  路  Source: SebastianM/angular-google-maps

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

Most helpful comment

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

All 6 comments

i'm having the same issue

@moycs777 Hi. I "fixed it" using the version 1.0.0

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

@doom777 Do you know when it will be published to NPM ?
I tried to install from github but got the error:

> npm install https://github.com/SebastianM/angular-google-maps.git
npm ERR! Can't install git+https://github.com/SebastianM/angular-google-maps.git#626a01c877a4e2083041d9b319e0c562040d1d8f: Missing package name

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

@doom777 @SebastianM Any plan to publish a new beta version to solve this?

Was this page helpful?
0 / 5 - 0 ratings