OpenLayers Regular Polygon Example

Draw Option Value
shape
snap angle
size

Regular polygons can be drawn by pointing a DrawFeature control to the RegularPolygon handler class. The options above demonstrate how the handler can be configured. Note if you are in angle snapping mode (if the snap angle is non-null) and you hold down the Shift key, you will toggle to non-snapping mode.