cesiumlab / cesiumlab/XbsjEarthUI

earthsdk使用后好像不能进行地图的二维,三维切换了

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

Description

earthsdk使用后好像不能进行地图的二维,三维切换了

目前很多对象都是只能在三维上加载,如果切换到二维会报错;如果一定要切换到二维:
1 可以在创建Earth时,传入参数scene3DOnly: false, 和Cesium的Viewer创建是一致的。
2 需要删掉三维对象。

创建地球的示例在这里:

http://earthsdk.com/v/last/Apps/Examples/?menu=true&url=./startup-createEarth.html

```
earth = new XE.Earth('earthContainer', {
// 这里设置Viewer的配置,和new Viewer(container, options)中的options一致
homeButton: true,
timeline: true,
scene3DOnly: false,
sceneMode: Cesium.SceneMode.SCENE2D,
});
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.