wind-layer
wind-layer copied to clipboard
Background without transparency
I'm using Openlayers 6.5 and when I add it as in the example the background is white.
import { WindLayer } from 'ol-wind';
const windLayer = new WindLayer(res, {
forceRender: false,
windOptions: {
velocityScale: 1 / 20,
paths: 5000,
colorScale: () => {
return '#ff473c';
},
width: 3,
generateParticleOption: false
}
});
map.addLayer(windLayer);
When I use the map as an option it works with transparency but I have problems removing the layer.
import { WindLayer } from 'ol-wind';
new WindLayer(res, {
forceRender: false,
windOptions: {
velocityScale: 1 / 20,
paths: 5000,
colorScale: () => {
return '#ff473c';
},
width: 3,
generateParticleOption: false
},
map: map
});
Are there any parameters to solve the transparency problem?
Thanks