Add stroke support for text symbolizers

This commit is contained in:
Tim Schaub
2013-10-07 16:10:06 -06:00
parent 5e86ffcca5
commit 539ecbdd9c
5 changed files with 94 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ var vector = new ol.layer.Vector({
new ol.style.Rule({
symbolizers: [
new ol.style.Fill({
color: '#ffffff',
color: 'white',
opacity: 0.6
}),
new ol.style.Stroke({
@@ -40,10 +40,14 @@ var vector = new ol.layer.Vector({
maxResolution: 5000,
symbolizers: [
new ol.style.Text({
color: '#000000',
color: 'black',
text: ol.expr.parse('name'),
fontFamily: 'Calibri,sans-serif',
fontSize: 12
fontSize: 12,
stroke: new ol.style.Stroke({
color: 'white',
width: 3
})
})
]
})