GithubHelp home page GithubHelp logo

ytsxstone / ckcesiumwind Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ochenkai/ckcesiumwind

0.0 0.0 0.0 25.41 MB

gis,cesium,wind,cesiumwind

License: Apache License 2.0

JavaScript 97.16% TypeScript 0.03% CSS 2.73% HTML 0.01% Vue 0.07%

ckcesiumwind's Introduction

风场效果

两种使用方式

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

效果

ckcesiumwind's People

Contributors

ochenkai avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.