cesium-xs-sdk 1.0.1 → 1.0.2
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 +21 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -92,10 +92,30 @@ dist/
|
|
|
92
92
|
| `GraphicModule` | 点、线、面、模型、文字、标绘图元创建与管理 |
|
|
93
93
|
| `EventModule` | 鼠标、键盘、场景事件订阅与发布 |
|
|
94
94
|
| `EditorModule` | 绘制、编辑、选择、删除等交互工具 |
|
|
95
|
+
| `ControlModule` | 地图控件管理(状态栏、缩放、指南针、比例尺等) |
|
|
96
|
+
|
|
97
|
+
## 控件系统
|
|
98
|
+
|
|
99
|
+
SDK 内置参考 Mars3D 的地图控件,可在 `xs3d.init` 时通过 `controls` 配置自动挂载:
|
|
100
|
+
|
|
101
|
+
```js
|
|
102
|
+
const sdk = xs3d.init('cesiumContainer', {
|
|
103
|
+
cesiumToken: 'your-ion-token',
|
|
104
|
+
controls: {
|
|
105
|
+
locationBar: { showFPS: true },
|
|
106
|
+
zoom: true,
|
|
107
|
+
compass: true,
|
|
108
|
+
distanceLegend: true
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
支持的控件:`LocationBar`、`Zoom`、`Compass`、`DistanceLegend`。详见 [控件系统使用文档](docs/controls.md)。
|
|
95
114
|
|
|
96
115
|
## 文档
|
|
97
116
|
|
|
98
|
-
- [SDK 开发指南](
|
|
117
|
+
- [SDK 开发指南](CLAUDE.md)
|
|
118
|
+
- [控件系统使用文档](docs/controls.md)
|
|
99
119
|
- [军事标绘集成计划](docs/military-plot-sdk-integration-plan.md)
|
|
100
120
|
- [变更记录](docs/change-log/)
|
|
101
121
|
|