1.0.3 • Published 8 months ago

chenkai-cesiumwind v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

风场效果

两种使用方式

    1. import WindLayer from 'chenkai-cesiumwind'
import WindLayer from 'chenkai-cesiumwind';
    1. import { Field, WindLayer } from ''chenkai-cesiumwind'
import { Field, WindLayer } from 'chenkai-cesiumwind'
  • 3.使用 import 示例数据
import winddata from './assets/wind.js'

加载风场图层

colorScale: [
      'rgb(33,33, 120)',
      '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(36,104, 180)',
      'rgb(60,157, 194)',
      'rgb(128,205,193 )',
      'rgb(151,218,168 )',
      'rgb(198,231,181)',
      'rgb(238,247,217)',
      'rgb(36,104, 180)',
      'rgb(60,157, 194)',
    ],
    frameRate: 16,
    maxAge: 60,
    globalAlpha: 0.9,
    velocityScale: 1 / 30,
    paths: 2000
  };
  // winddata在example目录下的示例数据
  const windLayer = new WindLayer(winddata, {windOptions});
  windLayer.addTo(viewer.value);

效果

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago