Sto cercando di impostare l'opacità di riempimento di una funzione vettoriale in OL3 e non riesco a capire come farlo se ho un valore esadecimale ... I ' Ho visto esempi con rgba. Eventuali suggerimenti?Impostazione dell'opacità riempimento carattere vettoriale quando si dispone di un colore esadecimale
Ecco quello che ho:
style : function(feature, resolution) {
return [new ol.style.Style(
{
stroke : new ol.style.Stroke(
{
color : feature.get('color'),
width : 2
}),
fill : new ol.style.Fill(
{
color : feature.get('color'), //'#FF0000'
opacity : 0.2 // I thought this would work, but it's not an option
})
})]
}