Giter Club home page Giter Club logo

cesium-windy-canvas's Introduction

cesium-windy-canvas

Cesium上建立风场动态粒子效果,自己封装可使用的API,仅供学习使用

效果图如下

效果杠杠的

参数讲解

参数名 参数解释 类型 默认值
viewer Cesium初始化后赋值变量 Object null
canvas 风场画布 DOM null
canvasContext canvas上下文 DOM params.canvas.getContext('2d')
canvasWidth 画布宽度 Number 300
canvasHeight 画布高度 Number 180
speedRate 风前进速度 Number 100
extent 风场绘制地图范围 Array []
particlesNumber 粒子总数 Number 20000
maxAge 每个粒子的最大生存周期 Number 120
frameTime 每秒刷新次数 Number 100
lineWidth 粒子线条宽度 Number 1
initExtent 风场初始范围 Array []
calc_speedRate 根据speedRate参数计算经纬度步进长度 Array [0, 0]
windField 风场网格 Object null
particles 风场粒子存储 Array []
animateFrame requestAnimationFrame事件句柄,用来清除操作 Object null
isdistory 是否进行销毁 bool false
windyColor 风场颜色集合(根据风速不同设置不同颜色) class new WindyColor()

教程讲解-个人博客

vue3.0+vite+Cesium使用记录

Cesium上建立风场动态粒子效果

cesium-windy-canvas's People

Contributors

quietly-20201113 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.