[OpenLayers-Users] How to prevent the creation of polylines with the drawing/measurement controls?

Franz Buchinger fbuchinger at gmail.com
Fri Nov 4 08:02:02 EDT 2011


thanks! that worked perfectly for me!

2011/11/4 Bart van den Eijnden <bartvde at osgis.nl>

> Hi,
>
> if you use OpenLayers 2.11 you can use maxVertices: 2 in your config for
> Handler.Path, see:
>
> http://trac.osgeo.org/openlayers/ticket/2779
>
> Best regards,
> Bart
>
> --
> Bart van den Eijnden
> OSGIS - http://osgis.nl
>
> On Nov 4, 2011, at 12:27 PM, Franz Buchinger wrote:
>
> Is there an easy way to allow only 2-point lines with the drawing or
> measurement controls? When the user sets the second line point, the line
> should be completed. A further click should start the creation of a new
> line.
>
> Any ideas?
>
> Thanks,
>
> Franz
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20111104/998c71de/attachment-0001.html


More information about the Users mailing list