Can anyone explain how I can ovveride the dblclick event when I'm using an OpenLayers.Control.DrawFeature? I see there is parameter in the constructor for handlerOptions – Used to set non-default properties on the control’s handler. My handler is just an OpenLayers.Handler.Path.
I want to run some custom validation when a user double clicks so that they can continue the sketch should they fail.
Double click –> "you've drawn something stupid are you sure you want to finish?" –> No —> carry on sketching
Thanks,
James
Best Answer
if you make some edit here
OpenLayers / lib / OpenLayers / Handler / Path.js
, you can reach what you want.code:
i hope it helps you...