ikonor
(Ikonor)
10
Hallo,
Evtl. kann man die Breite mit einer Funktion im Style Context annähern (nicht getestet):
'select':
{
...
backgroundWidth: '${getBackgroundWidth}',
label: '${ziel}',
...
}, { context: {
getBackgroundWidth: function(feature) {
return feature.attributes.ziel.length * <max. zeichenbreite>;
}
}}
Gruß,
ikonor