added a labelOutlineOpacity attribute to SVG and Canvas Renderers.

This commit is contained in:
Karamell
2013-04-21 11:04:06 +02:00
parent 87d8b6003d
commit 76efa60888
3 changed files with 6 additions and 1 deletions

View File

@@ -655,6 +655,9 @@ OpenLayers.Renderer.SVG = OpenLayers.Class(OpenLayers.Renderer.Elements, {
outlineStyle.fontColor = outlineStyle.labelOutlineColor;
outlineStyle.fontStrokeColor = outlineStyle.labelOutlineColor;
outlineStyle.fontStrokeWidth = style.labelOutlineWidth;
if (style.labelOutlineOpacity) {
outlineStyle.fontOpacity = style.labelOutlineOpacity;
}
delete outlineStyle.labelOutlineWidth;
this.drawText(featureId, outlineStyle, location);
}