cesium_dev_kit 1.0.96 → 1.0.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -5
- package/dist/index.js +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,8 +25,8 @@ Additionally it supports Post effects, visibility analysis tools for perspective
|
|
|
25
25
|
| radar | roaming | drag |
|
|
26
26
|
|  |  |  |
|
|
27
27
|
| rayCast | fireworksEffect | aniSoldier |
|
|
28
|
-
|  |
|
|
29
|
-
|
|
|
28
|
+
|  | |
|
|
29
|
+
| pathPlan | customPrimitive |
|
|
30
30
|
|
|
31
31
|
[More>>](https://benpaodehenji.com/cesiumDevKit)
|
|
32
32
|
|
|
@@ -44,7 +44,28 @@ The initialization of 'initCesium' allows for the acquisition of all extension m
|
|
|
44
44
|
|
|
45
45
|
```javaScript
|
|
46
46
|
import { initCesium } from 'cesium_dev_kit'
|
|
47
|
-
|
|
47
|
+
// custom viewer
|
|
48
|
+
var myViewer = new Cesium.Viewer('cesiumContainer', {
|
|
49
|
+
animation: false, //Whether to display animation controls
|
|
50
|
+
homeButton: false, //Whether to display the home button
|
|
51
|
+
geocoder: false, //Whether to display the place name lookup control If set to true, it cannot be queried
|
|
52
|
+
baseLayerPicker: false, //Whether to display layer selection controls
|
|
53
|
+
timeline: false, //Whether to display the timeline control
|
|
54
|
+
fullscreenButton: true, //Whether to display the button in full screen
|
|
55
|
+
scene3DOnly: false, //If set to true, all geometry is drawn in 3D mode to save GPU resources
|
|
56
|
+
infoBox: false, //Whether to display the information displayed after clicking the element
|
|
57
|
+
sceneModePicker: false, //Whether to display projection mode controls 3D / 2D
|
|
58
|
+
navigationInstructionsInitiallyVisible: false,
|
|
59
|
+
navigationHelpButton: false, //Whether to display the help control
|
|
60
|
+
selectionIndicator: false //Whether to display indicator components
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
//Allowing an existing Viewer to be passed in, cesium_dev_kit will use the passed Viewer directly without re-instantiating it with "new Cesium.Viewer()".
|
|
64
|
+
const { viewer, material, ... } = new initCesium({
|
|
65
|
+
cesiumGlobal: Cesium,
|
|
66
|
+
containerId: 'cesiumContainer',
|
|
67
|
+
viewer: myViewer,
|
|
68
|
+
...})
|
|
48
69
|
```
|
|
49
70
|
|
|
50
71
|
### 2、Import on demand
|
|
@@ -53,9 +74,27 @@ The import of a single extension class can be tailored to meet specific function
|
|
|
53
74
|
|
|
54
75
|
```javaScript
|
|
55
76
|
import {Graphics} from 'cesium_dev_kit'
|
|
77
|
+
// custom viewer
|
|
78
|
+
var myViewer = new Cesium.Viewer('cesiumContainer', {
|
|
79
|
+
animation: false, //Whether to display animation controls
|
|
80
|
+
homeButton: false, //Whether to display the home button
|
|
81
|
+
geocoder: false, //Whether to display the place name lookup control If set to true, it cannot be queried
|
|
82
|
+
baseLayerPicker: false, //Whether to display layer selection controls
|
|
83
|
+
timeline: false, //Whether to display the timeline control
|
|
84
|
+
fullscreenButton: true, //Whether to display the button in full screen
|
|
85
|
+
scene3DOnly: false, //If set to true, all geometry is drawn in 3D mode to save GPU resources
|
|
86
|
+
infoBox: false, //Whether to display the information displayed after clicking the element
|
|
87
|
+
sceneModePicker: false, //Whether to display projection mode controls 3D / 2D
|
|
88
|
+
navigationInstructionsInitiallyVisible: false,
|
|
89
|
+
navigationHelpButton: false, //Whether to display the help control
|
|
90
|
+
selectionIndicator: false //Whether to display indicator components
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
//Allowing an existing Viewer to be passed in, cesium_dev_kit will use the passed Viewer directly without re-instantiating it with "new Cesium.Viewer()".
|
|
56
94
|
const {viewer,graphics} = new Graphics({
|
|
57
95
|
cesiumGlobal: Cesium,
|
|
58
|
-
|
|
96
|
+
//containerId: 'cesiumContainer',
|
|
97
|
+
viewer: myViewer
|
|
59
98
|
})
|
|
60
99
|
graphics.getPointGraphics({
|
|
61
100
|
color:Cesium.Color.GREEN,
|
|
@@ -156,7 +195,7 @@ I am grateful to the generous individuals who awarded me these little stars, tha
|
|
|
156
195
|
[npm-url]: https://www.npmjs.com/package/cesium_dev_kit
|
|
157
196
|
[build-size]: https://img.shields.io/bundlephobia/minzip/cesium_dev_kit/1.0.70?logo=travis
|
|
158
197
|
[build-size-url]: https://img.shields.io/bundlephobia/minzip/cesium_dev_kit
|
|
159
|
-
[npm-download]: https://img.shields.io/npm/
|
|
198
|
+
[npm-download]: https://img.shields.io/npm/dy/cesium_dev_kit?logo=npm
|
|
160
199
|
[npmtrends-url]: https://www.npmtrends.com/cesium_dev_kit
|
|
161
200
|
[license-uri]: https://img.shields.io/npm/l/cesium_dev_kit.svg
|
|
162
201
|
[license-link]: https://npm.im/cesium_dev_kit
|