Closed ole1986 closed 1 year ago
To answer my own question. Using a style-func solves the issue
<vl-style-func :factory="myStyleFactory" />
myStyleFactory () {
return (feature, resolution) => {
return new Style({
fill: new Fill({ color: '#0000' }),
stroke: new Stroke({ color: '#2228', width: 2 })
})
}
}
Hello @ole1986 ,
vl-style-box
is renamed to vl-style
in v0.12.
But you are right, vl-style-func
can be used instead.
I am using the at some places, but with version 0.12 the style-box has been removed.
What is the alternative to: