[OpenLayers-Users] How to prevent the creation of polylines with
the drawing/measurement controls?
Bart van den Eijnden
bartvde at osgis.nl
Fri Nov 4 07:31:49 EDT 2011
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/23409ea2/attachment.html
More information about the Users
mailing list