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.5
Version published
Weekly downloads
30
11.11%
Maintainers
1
Weekly downloads
 
Created
Source

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

openlayers

FAQs

Package last updated on 21 Mar 2024

Related posts