OpenLayers Labeled features example
Label vector features with a text symbolizer.
This example shows drawing simple vector features with a label