Skip Navigation

[Resolved] Right click on map marker

This support ticket is created 3 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 3 years, 8 months ago.

Assisted by: Minesh.

Author
Posts
#2063925

Have right lick on a map marker show an information panel or perform an action (like show a form for data entry)

Is there a similar example that we can see?
I found this , which I put in -> CUSTOM CODE-- but I have no idea how to make it work
Seems there are a lot of different "solutions", but nothing I'm confident will work
google.maps.event.addListener(marker, 'rightclick', function() {
infowindow.setContent("<div style='width:100px'>rightclick</div>");
infowindow.open(map,marker);
});

Can you advise/help?
Thanks

#2064039

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

There is no such native feature available to add rightclick event for marker.

Toolset maps offers the feature to open the marker popup when you click on marker as well as it also offers the feature to configure the marker hover content. Please check the following Doc:
=> https://toolset.com/course-lesson/displaying-a-list-of-posts-on-a-map/#add-marker-pop-up-content-and-hover-hints