<br><br>On Monday, January 9, 2012, Vidal, Antoni <<a href="mailto:antoni.vidal@icc.cat">antoni.vidal@icc.cat</a>> wrote:<br>> Hi list,<br>><br>> <br>><br>> 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?<br>
<br>Have you tried the Handler.Path maxVertices option? <<a href="http://dev.openlayers.org/releases/OpenLayers-2.11/doc/apidocs/files/OpenLayers/Handler/Path-js.html#OpenLayers.Handler.Path.maxVertices">http://dev.openlayers.org/releases/OpenLayers-2.11/doc/apidocs/files/OpenLayers/Handler/Path-js.html#OpenLayers.Handler.Path.maxVertices</a>><br>
<br><br><br>-- <br>Eric Lemoine<br><br>Camptocamp France SAS<br>Savoie Technolac, BP 352<br>73377 Le Bourget du Lac, Cedex<br><br>Tel : 00 33 4 79 44 44 96<br>Mail : <a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a><br>
<a href="http://www.camptocamp.com">http://www.camptocamp.com</a><br><br>