Actually I do not know how to add a rectangle to a label in OL, but if it's just for readability purposes maybe a stroke around the labels like shown in this OpenLayers Example could fit your needs.
2 of 2
Replace dead link with current one
TobsenB
- 912
- 5
- 18