cesiumlab / cesiumlab/XbsjEarthUI

可否在用XE.earth生成viewer时传入Cesium.viewer的参数呢?

Open
#12 0 comments 0 reactions 0 assignees View on GitHub
documentation question
Dominant language
JavaScript
Stars
734
Forks
193
PR merge metrics
No merged PRs in 30d

Description

想问个问题:可否在用XE.earth生成viewer时传入Cesium.viewer的参数呢?有些参数比如shouldAnimate,homeButton一类在viewer生成后无法或不方便设置。

可以设置的,效果如下:

![image](https://user-images.githubusercontent.com/13550568/68721804-9cd85500-05ee-11ea-81dc-fa7b2cc1fe0b.png)

代码在这里:

```
// 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.