openlayers-wind
v1.1.7
Published
ol3-ol4 wind
Downloads
55
Maintainers
Readme
ol3-4-wind
openlayers wind layer adapter
Usage
Install
pnpm i openlayers-wind -S
Example
import { WindLayer } from 'openlayers-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'
});