You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue description
google.maps.MouseEvent does not return appropriate object, instead returns "r"
Steps to reproduce and a minimal demo of the problem
create a new angular project
npm install @agm/core (installs 3.0.0-beta.0)
create a component that uses <agm-map [latitude]="latitude" [longitude]="longitude" [zoom]="zoom"(mapRightClick)="onMapRightClick($event)"></agm-map>
create a function mapped to the mapRightClick output
public onMapRightClick(event: google.maps.MouseEvent): void {
console.log("event: ", event); // <-- returns "r" ??
const lat = event.latLng.lat(); // latLng results in undefined (should be defined)
}
_Use stackblitz.com or similar -- try this template as a starting point: https://stackblitz.com/edit/angular-google-maps-demo
^ this stackblitz.com template uses an OLD VERSION OF THE AGM/CORE DEPENDENCIES "@agm/core": "1.0.0", and is not useful for troubleshooting.
What steps should we try in your demo to see the problem?
Current behavior
google.maps.MouseEvent returns "r" resulting in event.latLng to be undefined
Expected/desired behavior
google.maps.MouseEvent should return appropriate event information so that I may collect latLng data , latLng should not be undefined.
angular-google-maps, Angular, & any other relevant dependency versions
Issue description
google.maps.MouseEvent does not return appropriate object, instead returns "r"
Steps to reproduce and a minimal demo of the problem
create a new angular project
npm install @agm/core (installs 3.0.0-beta.0)
create a component that uses
<agm-map [latitude]="latitude" [longitude]="longitude" [zoom]="zoom"(mapRightClick)="onMapRightClick($event)"></agm-map>
create a function mapped to the
mapRightClick
output_Use stackblitz.com or similar -- try this template as a starting point: https://stackblitz.com/edit/angular-google-maps-demo
^ this stackblitz.com template uses an OLD VERSION OF THE AGM/CORE DEPENDENCIES
"@agm/core": "1.0.0",
and is not useful for troubleshooting.What steps should we try in your demo to see the problem?
Current behavior
google.maps.MouseEvent returns "r" resulting in
event.latLng
to be undefinedExpected/desired behavior
google.maps.MouseEvent should return appropriate event information so that I may collect latLng data , latLng should not be undefined.
angular-google-maps, Angular, & any other relevant dependency versions
Other information
The text was updated successfully, but these errors were encountered: