New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

openlayers-wind

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openlayers-wind

ol3-ol4 wind

Source
npmnpm
Version
1.1.1
Version published
Weekly downloads
14
-65%
Maintainers
1
Weekly downloads
 
Created
Source

openlayers-wind

openlayers 3-4 wind field

Usage

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'
});
    
console.log(map, windLayer);
    
map.addLayer(windLayer);

Keywords

openlayers

FAQs

Package last updated on 22 Nov 2022

Related posts