I am trying create a client-side ContextMenu based on the right click of a feature. I am trying to do this all on client-side. Could you pin-point me on how accomplish this? From what I read on OpenLayers forum, it recommends to disable the contextmenu ( map.div.oncontextmenu = function noContextMenu(e)). Then detect the mousedown event to trigger the menu. Don't know if this is the proper or correct way of doing via webedition.
Here are the I functionalities I need to for the client-side ContextMenu.
1. Open ContextMenu while on 'Normal' Map1.SetDrawMode
2. Programmatically select the feature (highlight) when right click on a feature (not on map)
3. Programmatically set the feature as Drag/Edit mode when ContextMenu item is selected
Please advise. Thanks