Skip to content
New issue

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

Can you provide a support to create a Context Menu on Marker Right click. #2020

Open
sp21 opened this issue Aug 25, 2022 · 0 comments
Open

Comments

@sp21
Copy link

sp21 commented Aug 25, 2022

Hi Am not able to access the event on marker right click to provide a context menu on x and y values

<agm-marker
*ngFor="let m of markers; let i = index"
(markerClick)="clickedMarker(m, i)"
[latitude]="m.lat"
[longitude]="m.lng"
[label]="m.label"
[markerDraggable]="m.draggable"
[iconUrl]="$any(m.icon)"
(dragEnd)="markerDragEnd(m, $event)"
(mouseOver)="onMouseOver(infoWindow,gm)"
(markerRightClick)="onRightClickMarker(m,$event)"
><

onRightClickMarker(m: marker, $event: MouseEvent){
console.log('onRightClick', m, $event);
}

Hereafter running code am not able to get access to the event on the right click of the marker.

This is what I found in the official doc. unlike dragEnd why there is no support for accessing events on markerRightClick. can you fix that?

markerRightClick

Type : EventEmitter
Defined in packages/core/src/lib/directives/marker.ts:123
This event is fired when the user rightclicks on the marker.

_Use stackblitz.com or similar -- try this template as a starting point: https://stackblitz.com/edit/angular-google-maps-demo

What steps should we try in your demo to see the problem?

Current behavior

Expected/desired behavior

angular-google-maps, Angular, & any other relevant dependency versions

Other information
markerRightClick
Type : EventEmitter
Defined in packages/core/src/lib/directives/marker.ts:123
This event is fired when the user rightclicks on the marker.

@sp21 sp21 changed the title Can you provide a support a create a Context Menu on Marker Right click. Can you provide a support to create a Context Menu on Marker Right click. Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant