wind-layer icon indicating copy to clipboard operation
wind-layer copied to clipboard

Background without transparency

Open larsurilch opened this issue 2 years ago • 0 comments

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);

background

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
});

transparent

Are there any parameters to solve the transparency problem?

Thanks

larsurilch avatar Jul 25 '22 14:07 larsurilch