Giter Club home page Giter Club logo

linken-code / cesium_dev_kit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dengxiaoning/cesium_dev_kit

0.0 0.0 0.0 832.5 MB

工作之余整理收集了一些Cesium常用的功能(如模型控制、分析、各种材质使用、Shader特效等),使用ES6进行封装,希望能给小伙伴学习与工作带来一些便利;如对你有所帮助请点个赞支持支持,如有不足之处欢迎指正交流共同学习成长。

Home Page: https://benpaodehenji.com/cesiumDevKit

License: MIT License

JavaScript 60.68% TypeScript 9.32% CSS 0.14% HTML 0.03% Vue 26.29% SCSS 3.54%

cesium_dev_kit's Introduction

cesium_dev_kit

Build Status NPM Package NPM DownloadsWeekly Build Size GitHub Repo stars license

English | 中文

Introduction

 This is a Cesium development kit that includes functionalities such as layer loading, coordinate conversion, coordinate picking, camera control, measurement, plotting, model loading and manipulation (translation, rotation scaling), 3Dtiles view position adjustment, weather effects (rain, snow, fog), scene rendering with radar scan and information box display capabilities. It also provides features for flow line visualization, lighting effects including dynamic wall and other luminous materials rendering. Additionally it supports Post effects, visibility analysis tools for perspective analysis and slope analysis. Furthermore it offers Inundation analysis as well as volume analysis capabilities and terrain excavation functionality.

Features

  • materials material
  • analysis analysis
  • plotting plot
  • dragging drag
  • radar scan radar
  • First-person roaming roaming

Preview

https://benpaodehenji.com/cesiumDevKit

Install

npm install cesium_dev_kit

Use

1、Import all

The initialization of 'initCesium' allows for the acquisition of all extension modules.

 import { initCesium } from 'cesium_dev_kit'
  const {  viewer,  material, ... } = new initCesium({  cesiumGlobal: Cesium,containerId: 'cesiumContainer',...})

2、Import on demand

The import of a single extension class can be tailored to meet specific functional requirements, thereby minimizing code redundancy.

import {Graphics} from 'cesium_dev_kit'
const {viewer,graphics} = new Graphics({
      cesiumGlobal: Cesium,
      containerId: 'cesiumContainer'
  })
  graphics.getPointGraphics({
      color:Cesium.Color.GREEN,
      pixelSize:5,
      outlineColor:Cesium.Color.WHITE,
      outlineWidth:1
  })

Used in h5

  • Import index.umd.js directly into html
<script type="text/javascript" src="index.umd.js"></script>
  • Initialize object
new cesium_dev_kit.initCesium({...})

See API documentation 📑 (Cheap server, please be patient) for more details...


Use example

Browser support

The 'Chrome 80+' browser is recommended for local development

Modern browsers (chrome, Firefox, Microsoft edge, etc.) are supported. Internet Explorer is not supported

Thanks

cesium-d3kit
drawarrowforcesium
vue3-ts-cesium-map-show

This project includes but is not limited to the reference and reference of the above materials, thank you very much for sharing

Project deficiency and optimization

  • 1、Extended classes not using type detection (TS)
  • 2、No exception catching and handling

How to contribute

This project exists thanks to all the people who contribute.

  • If you want to contribute, you can Raise an issue Or submit a Pull Request.

See CONTRIBUTING for more details on donations...


Star

I am grateful to the generous individuals who awarded me these little stars, thank you for your support ❤️

Stargazers repo roster for @dengxiaoning/cesium_dev_kit

Fork

@sincely、@ooil929、 @InPanda、 luyufanzhi、AllenChiangCN、Liquid-Zhangliquan... thank you for your attention ❤️

Forkers repo roster for @dengxiaoning/cesium_dev_kit

cesium_dev_kit's People

Contributors

dengxiaoning avatar dennis9937 avatar gratefuleachone avatar dependabot[bot] 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.