Is there a way to create a context menu for a gmap marker in primefaces?
I know there is a gmapInfoWindow object, but that requires an onclick event and doesn’t have the look and feel of a context menu.
I would prefer to display a context menu that appears during the onmouseover event for a gmap marker.
Please let me know if this is possible or not? Any sample code would be greatly appreciated also.
Thanks
Joe
Looking at the source code of gmap.js
I just removed the click handlers and added a listener for mouseover:
Here is the javascript code:
Where gmap is the widgetVar attribute of
<p:gmap>