Custom Control Example

control, panel, rectangle, light

Demonstrate the addition of a rectangle to the OpenLayers window.

The control allows you to draw a rectangle, that reports its coordinates after creation. Hold down the shift key on your keyboard and draw a rectangle with the mouse.