简体   繁体   中英

OpenLayers freehand polygon without elastic line to starting point

Using the (wonderful) JavaScript OpenLayers library is there a way to allow freehand drawing of a polygon that does not have the final point always connected to the first point but rather only upon mouse up the polygon is completed and gets filled in?

An example to get a sense of what I mean: http://openlayers.org/dev/examples/draw-feature.html

Select polygon, then hold shift to do a freehand drawing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM