ol5-wind
v1.1.7
Published
ol5 wind
Downloads
26
Maintainers
Readme
ol5-wind
openlayers wind layer adapter
Usage
Install
pnpm i ol5-wind -S
Example
import { WindLayer } from 'ol5-wind';
const windLayer = new WindLayer(res, {
forceRender: false,
windOptions: {
// colorScale: scale,
velocityScale: 1 / 20,
paths: 5000,
// eslint-disable-next-line no-unused-vars
colorScale: () => {
// console.log(m);
return '#ff473c';
},
width: 3,
// colorScale: scale,
generateParticleOption: false
},
map: map,
// projection: 'EPSG:4326'
});