Closed larsurilch closed 1 year ago
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
@larsurilch use windLayer.setMap(null); remove layer and windLayer.setMap(map); add layer is it feasible?
windLayer.setMap(null);
windLayer.setMap(map);
@larsurilch try v1.1.1,close this issues for now, unless there is another problem
I'm using Openlayers 6.5 and when I add it as in the example the background is white.
When I use the map as an option it works with transparency but I have problems removing the layer.
Are there any parameters to solve the transparency problem?
Thanks