Hi,
the easiest way to do what you want is to make sure that your
right-click handler is registered before the draw handler. Then, in your
right-click handler, you have to stop the event from propagating, e.g. using
OpenLayers.Event.stop();
Regards,
Andreas.
Harry Lam wrote:
> In my map, I ha
In my map, I have added a OpenLayers.Control.DrawFeature(vectorLayer,
OpenLayers.Handler.Polygon) control for drawing a polygon.
The polygon gets drawn for both left clicks and right clicks on the map.
How can I remove the right-click functionality? I ask because I already
have other code to pu