How to get different stroke colors?
Closed this issue · 4 comments
I used the function .strokeColor('value2')
in combination with .strokeColor('value')` to get a different stroke color for a region which should be marked. In the csv-data I set value2 equal 0 for all other regions and 1 for this special region and defined two colors in the metadata.
Is there still any possibility to get something like this? I tried with
.symbolizeAttribute('auswahl')
.meta({
'value': {
...
},
'auswahl':{
label: 'Auswahl',
stroke: ['#ffffff','#e10019'],
stroke-width: [1.0,4.0]
}
})
but it didn't work.
Is this with the older version you were referring to in #41 ? - symbolizeAttribute
was only added peroperly in 0.2.8, so it doesn't work with oder versions. I will look into the other issue tomorrow...
Thanks. No, this is what i tried with the new version.
With the older version i got something like this to work as expected:
.strokeColor('auswahl')
.meta({
'value': {
...
},
'auswahl':{
label: 'Auswahl',
color: ['#ffffff','#e10019']
}
})
Thanks, the custom symbolization ist great.