简体   繁体   English

OpenLayer3中的旋转矢量图层功能

[英]Rotation vector layer feature in OpenLayer3

Is possible in OpenLayers3 rotate a feature in editing mode like in old OpenLayers2? 在OpenLayers3中可以像在旧版OpenLayers2中一样在编辑模式下旋转功能吗?

At the moment I found only the possibility to modify, draw and drag features but not rotate. 目前,我发现只能修改,绘制和拖动特征,而不能旋转。

Thanks in advance for reply. 预先感谢您的答复。

You can rotate a feature styled with ol.style.Circle , ol.style.Icon , ol.style.Image and ol.style.Text . 您可以旋转使用ol.style.Circleol.style.Iconol.style.Imageol.style.Text设置样式的特征。

You can use setRotation(rotation) on an icon. 您可以在图标上使用setRotation(rotation)

Here is an example , click on the marker to rotate it. 这是一个示例 ,单击标记以旋转它。

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

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