Separate opacity in examples

This commit is contained in:
Tim Schaub
2013-08-05 11:27:03 -06:00
parent 5d0b4563a8
commit c2cc1af2ac
3 changed files with 11 additions and 7 deletions

View File

@@ -44,9 +44,9 @@ var style = new ol.style.Style({rules: [
new ol.style.Rule({
symbolizers: [
new ol.style.Polygon({
fillColor: '#ffff33',
strokeColor: '#ffffff',
opacity: ol.expr.parse('getOpacity()')
fillColor: '#ffff33',
fillOpacity: ol.expr.parse('getOpacity()')
})
]
})

View File

@@ -26,10 +26,11 @@ var vector = new ol.layer.Vector({
new ol.style.Rule({
symbolizers: [
new ol.style.Polygon({
strokeColor: '#FFF',
fillColor: '#BADA55',
strokeWidth: 1.5,
opacity: 0.5
fillOpacity: 0.5,
strokeColor: '#FFF',
strokeOpacity: 1,
strokeWidth: 1.5
})
]
})

View File

@@ -31,7 +31,10 @@ var vector = new ol.layer.Vector({
new ol.style.Rule({
symbolizers: [
new ol.style.Polygon({
strokeColor: '#bada55'
strokeColor: '#319FD3',
strokeOpacity: 1,
fillColor: '#ffffff',
fillOpacity: 0.6
})
]
}),
@@ -39,7 +42,7 @@ var vector = new ol.layer.Vector({
filter: 'resolution() < 5000',
symbolizers: [
new ol.style.Text({
color: '#bada55',
color: '#000000',
text: ol.expr.parse('name'),
fontFamily: 'Calibri,sans-serif',
fontSize: 12