# amap-wind

> amap(gaode) wind

Latest version **1.2.5** (published 2026-11-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install amap-wind
pnpm add amap-wind
yarn add amap-wind
bun add amap-wind
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.2.5 |
| Published | 2026-11-19 |
| First published | 2020-02-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 196.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 715 |
| Author | sakitam-fdd |
| Maintainers | sakitam-fdd |
| Keywords | amap, 2d, webgl, map, vis, gis |

## Links

- npm: https://www.npmjs.com/package/amap-wind
- Repository: https://github.com/sakitam-fdd/wind-layer
- Homepage: https://github.com/sakitam-fdd/wind-layer#readme
- Issues: https://github.com/sakitam-fdd/wind-layer/issues
- npm.io page: https://npm.io/package/amap-wind

## Dependencies (1)

- [wind-core](https://npm.io/package/wind-core.md) 1.1.9

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 1.2.5 (latest) — 2026-11-19
- 1.2.4 — 2024-04-28
- 1.2.3 — 2024-04-14
- 1.2.2 — 2024-03-21
- 1.2.1 — 2024-03-17
- 1.2.0 — 2024-02-29
- 1.1.2 — 2022-11-26
- 1.1.1 — 2022-11-22
- 1.1.1-alpha.2 — 2021-04-09
- 1.1.1-alpha.1 — 2021-03-30
- 1.1.1-alpha.0 — 2021-03-26
- 1.1.0-alpha.0 — 2021-03-26
- 1.0.0-alpha.10 — 2020-07-05
- 1.0.0-alpha.9 — 2020-06-21
- 1.0.0-alpha.8 — 2020-06-21
- … 8 more at https://npm.io/package/amap-wind/versions

## README

# `amap-wind`

> [amap](https://amap.com) wind layer adapter

## Usage

### Install

```bash
pnpm i amap-wind -D
```

### Example

```tsx
requireSDK('//webapi.amap.com/maps?v=1.4.2', '6cb85da518029607d421917b7ddeb94a', 'webapi.amap.com')
  .then(flag => {
    if (flag) {
      const map = new AMap.Map('amap', {
        resizeEnable: true,
        zoom: 0,
        center: [113.53450137499999, 34.44104525],
        zooms: [0, 18]
      });

      import('amap-wind').then(({ WindLayer }) => {
        fetch(this.$withBase('/data/wind.json'))
          .then(res => res.json())
          .then(res => {
            const windLayer = new WindLayer(res, {
              windOptions: {
                // colorScale: scale,
                velocityScale: 1 / 20,
                paths: 5000,
                // eslint-disable-next-line no-unused-vars
                colorScale: [
                  "rgb(36,104, 180)",
                  "rgb(60,157, 194)",
                  "rgb(128,205,193 )",
                  "rgb(151,218,168 )",
                  "rgb(198,231,181)",
                  "rgb(238,247,217)",
                  "rgb(255,238,159)",
                  "rgb(252,217,125)",
                  "rgb(255,182,100)",
                  "rgb(252,150,75)",
                  "rgb(250,112,52)",
                  "rgb(245,64,32)",
                  "rgb(237,45,28)",
                  "rgb(220,24,32)",
                  "rgb(180,0,35)"
                ],
                lineWidth: 2,
                // colorScale: scale,
                generateParticleOption: false
              },
              zIndex: 20,
            });

            console.log(map, windLayer);

            windLayer.appendTo(map);
          });
      });
    }
  })
  .catch(e => console.error(e));
```

---
_Source: https://npm.io/package/amap-wind · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
