[OpenLayers-Dev] RE: How to finish a path
Xavier Mamano (jorix)
xavier.mamano at gmail.com
Thu Jan 12 02:49:36 EST 2012
Hi,
I've tested the code and I find that "maxVertices" does not work on
freehand.
These changes allows to use "maxVertices" on freehand:
https://github.com/jorix/openlayers/commit/70f42b062934784c1ef8e593cbc7f8b05049f946
Xavier Mamano
Vidal, Antoni wrote
>
> Hi,
>
>
>
> At first I discard maxVertices because I use freeHand mode and
> documentation tells that maxVertices didn't work using it. Anyway, I
> tryed, and it seems to work properly.
>
>
>
> Anyway, I'm interested in launch a double click using source.
>
>
>
> Any idea?
>
>
>
> 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/>
>
>
>
>
>
>
>
> De: Eric Lemoine [mailto:eric.lemoine@]
> Enviat: lunes, 09 de enero de 2012 18:39
> Per a: Vidal, Antoni
> A/c: openlayers-dev at .osgeo
> Tema: Re: [OpenLayers-Dev] How to finish a path
>
>
>
>
>
> On Monday, January 9, 2012, Vidal, Antoni <antoni.vidal@> 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@
> http://www.camptocamp.com
>
>
> _______________________________________________
> Dev mailing list
> Dev at .osgeo
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-finish-a-path-tp7167473p7178888.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.
More information about the Dev
mailing list