Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ol-wind

sakitam-fdd20.5kMIT1.1.9TypeScript support: included

ol wind

openlayers, ol, webgl, map, vis, gis

readme

ol-wind

openlayers wind layer adapter

Usage

Install

pnpm i ol-wind -S

Example

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

changelog

Commit

  • revert: 恢复上一版本
  • feat: 功能性更新
  • update: 更新
  • fixed: 修复
  • docs: 新增文档
  • style: 样式修改
  • refactor: 重构
  • perf: 优化
  • test: 增加测试模块,不涉及生产环境的代码
  • chore: 更新核心模块,包配置文件,不涉及生产环境的代码
  • release: 发布版本
  • wip: 开发中
  • types: 类型定义
  • remove: 移除功能或者代码

0.0.7 (2019.03.20)

  • 修复ol插件投影问题
  • 修复server无法解析问题

0.0.6 (2018.09.07)

fix #15

update build flow

0.0.5 (2018.03.17)

fix #8

test BMap and add example

0.0.4 (2018.03.09)

  • 更新 CanvasLayer 创建方式。
  • 优化事件处理。

0.0.3 (2018.02.02)

  • 抓取服务新增 3 个接口,包括查询文件树和支持通过文件名查询数据。
  • 暂时新增了 EPSG:4326 投影的兼容处理。#5
  • 解决了与 ol3Echarts 事件处理冲突问题。

0.0.2 (2018.01.20)

  • 更新部分依赖。
  • 修复 setDataclearWind bug。
  • 新增数据抓取服务,使用koa2构建。

0.0.1 (2017.12.16)

  • 实现基础功能

0.0.0 (2017.12.14)

  • init