ol-ext: DrawRegular interaction
ol.interaction.DrawRegular
is an interaction to draw regular polygon (circle/ellipse, triangle, square/rectangles, etc).
Options:
sides:
(<3 mean circle)
allow rotation (when
Ctrl+Shift
)
Shift
: force square features.
Ctrl
: center features.