简体   繁体   中英

Rotation vector layer feature in OpenLayer3

Is possible in OpenLayers3 rotate a feature in editing mode like in old 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 .

You can use setRotation(rotation) on an icon.

Here is an example , click on the marker to rotate it.

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