npm.io
1.1.8 • Published 19h ago

openlayers-wind

Licence
MIT
Version
1.1.8
Deps
1
Size
176 kB
Vulns
0
Weekly
0
Stars
714

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

Keywords