简体   繁体   English

OpenLayers徒手画多边形,没有弹性线到起点

[英]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? 使用(很棒的)JavaScript OpenLayers库,有没有办法允许徒手绘制一个多边形,而该多边形不具有始终连接到第一个点的最终点,而只是在鼠标向上移动时才完成多边形并被填充?

An example to get a sense of what I mean: http://openlayers.org/dev/examples/draw-feature.html 了解我的意思的示例: http : //openlayers.org/dev/examples/draw-feature.html

Select polygon, then hold shift to do a freehand drawing. 选择多边形,然后按住shift进行徒手绘制。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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