ol-wind
TypeScript icon, indicating that this package has built-in type declarations

1.1.8 • Public • Published

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

Package Sidebar

Install

npm i ol-wind

Weekly Downloads

529

Version

1.1.8

License

MIT

Unpacked Size

189 kB

Total Files

10

Last publish

Collaborators

  • sakitam-fdd