Skip to content

1. Procedure of use

Dempsey edited this page May 9, 2024 · 3 revisions

Install

npm install cesium_dev_kit

Import

import { initCesium } from 'cesium_dev_kit'

Use

1、Import all

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

1.1 The initCesium method configuration parameter list

Property Type Description Default
cesiumGlobal Object Cesium Object undefined
threeGlobal Object THREE Object undefined
containerId String Cesium mounts dom container id undefined
threeContainerId String Three mounts dom container id undefined
viewerConfig Object viewer base configuration (same as official website) {}
extreaConfig Object Configure additional parameters, such as {logo: true// Whether to display logo, depthTest: true// Enable depth detection} {}
MapImageryList Array To configure the base image, see ImageryProvider []
defaultStatic Array Static resource configurations used by shaders (such as image urls) undefined

1.2 The initCesium method returns the result

name Type Description
viewer Object Cesium instance object
material Object Material module (Modify physical material)
graphics Object Graphics modules (e.g. creating PolygonGraphics objects, etc.)
math3d Object Three-dimensional mathematical tool
primitive Object Primitives manipulate objects (such as creating polygon using primivite, etc.)
draw Object Drawing modules (e.g. polygons, rectangles)
passEffect Object Post-processing module
customCesiumPlugin Object Custom sensor extensions
control Object Control modules (such as model positioning, dragging, etc.)
plugin Object Additional plugins (such as expanding css3 animation, terrain cropping)
base Object Basic modules (e.g. coordinate conversion, layer initialization, etc.)
analysis Object Analysis modules (e.g., slope, direction, visibility, visibility analysis)
attackArrowObj Object Plotting (attack)
straightArrowObj Object Plotting (straight hit)
pincerArrowObj Object Plotting(Pincer attack)
ThreeJs Object Integrate ThreeJS extension objects
Clone this wiki locally