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
Alt+Shift
)
Shift
: force square features.
Alt
: center features.