[OpenLayers-Dev] How to finish a path

Vidal, Antoni antoni.vidal at icc.cat
Mon Jan 9 06:05:02 EST 2012

Hi list,


I need to force finish a path drawned in freehand mode when it arrives to 500 points. I have a points counter and when it have 500,  launch a function that makes a process (draws a chart), but mouse pointer continue allowing users to draw new points. I woold like to force a double click at this moment to finish the path. My question is, how can I force, simulate, launch a double click?


Thanks in advance.


Antoni Vidal

Unitat d'Aplicacions SIG-WEB
Institut Cartogràfic de Catalunya <http://mercuri.icc.cat/website/mob_nf/mob1/mob2/inici2.htm?CONSULTA=Institut%20Cartogr%25E0fic%20de%20Catalunya&XYADDRESS=429486:4580392> 
Parc de Montjuïc, E-08038 Barcelona
Tel. (+34) 93 567 15 00 (ext. 3228)
www.icc.cat <http://www.icc.cat/> 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20120109/00287516/attachment.html

More information about the Dev mailing list