cesiumlab / cesiumlab/XbsjEarthUI
可否在用XE.earth生成viewer时传入Cesium.viewer的参数呢?
- Dominant language
- JavaScript
- Stars
- 734
- Forks
- 193
- PR merge metrics
- No merged PRs in 30d
Description
想问个问题:可否在用XE.earth生成viewer时传入Cesium.viewer的参数呢?有些参数比如shouldAnimate,homeButton一类在viewer生成后无法或不方便设置。
可以设置的,效果如下:

代码在这里:
```
// earth = new XE.Earth('earthContainer');
earth = new XE.Earth('earthContainer', {
// 这里设置Viewer的配置,和new Viewer(container, options)中的options一致
homeButton: true,
timeline: true,
});
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the XE.Earth constructor or viewer-creation entry point and compare its arguments with Cesium's new Viewer(container, options) API. Verify that options such as shouldAnimate, homeButton, and timeline are accepted; done means creating XE.Earth with the shown options produces the requested Viewer behavior and controls.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100