I want to use OpenLayers to draw a simple rectangle (based on 4 coordinates) on my map. I would also like to fill the rectangle with a color.
For example (EPSG:4326):
- 13.40, 52.50
- 13.50, 52.50
- 13.50, 52.60
- 13.40, 52.60
The documentation tells me to use this:
var poly = new OpenLayers.Bounds(0,0,10,10).toGeometry();
How I am supposed to convert this?