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

1.1.7 • Public • Published

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

Package Sidebar

Install

npm i openlayers-wind

Weekly Downloads

56

Version

1.1.7

License

MIT

Unpacked Size

169 kB

Total Files

10

Last publish

Collaborators

  • sakitam-fdd