ol-wind
v1.1.9
Published
ol wind
Downloads
2,080
Maintainers
Readme
ol-wind
openlayers wind layer adapter
Usage
Install
pnpm i ol-wind -S
Example
import { WindLayer } from 'ol-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'
});
console.log(map, windLayer);
map.addLayer(windLayer);