Nutmeg Pumpkin Macchiato

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

    1.1.1-alpha.2 • Public • Published

    ol-wind

    openlayers wind field

    Usage

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

    Keywords

    none

    Install

    npm i ol-wind

    DownloadsWeekly Downloads

    261

    Version

    1.1.1-alpha.2

    License

    MIT

    Unpacked Size

    551 kB

    Total Files

    16

    Last publish

    Collaborators

    • sakitam-fdd