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

1.1.7 • Public • Published

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

Package Sidebar

Install

npm i ol5-wind

Weekly Downloads

73

Version

1.1.7

License

MIT

Unpacked Size

167 kB

Total Files

10

Last publish

Collaborators

  • sakitam-fdd