I need text labels with surrounding a box and a specific fill color. Actually I have the following function which only shows the text but I don't know how to draw a box around the text. Text length is always different, so it must consider the text length. Can anybody show me how to implement it? function showLabel(mapPos) { var textStop = replaceAll(mapPos['text'],"|",""); //textStop = replaceAll(
![Drawing box arround text in OpenLayers 3?](https://cdn-ak-scissors.b.st-hatena.com/image/square/29eda0406a96b2b167f14f11fbe78cbd5935f814/height=288;version=1;width=512/https%3A%2F%2Fcdn.sstatic.net%2FSites%2Fgis%2FImg%2Fapple-touch-icon%402.png%3Fv%3D54e3ab1edcf3)