[OpenLayers-Dev] How to finish a path

Eric Lemoine eric.lemoine at camptocamp.com
Mon Jan 9 12:38:50 EST 2012


On Monday, January 9, 2012, Vidal, Antoni <antoni.vidal at icc.cat> wrote:
> 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?

Have you tried the Handler.Path maxVertices option? <
http://dev.openlayers.org/releases/OpenLayers-2.11/doc/apidocs/files/OpenLayers/Handler/Path-js.html#OpenLayers.Handler.Path.maxVertices
>



-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20120109/aff7b5d7/attachment.html


More information about the Dev mailing list