cesiumlab / cesiumlab/XbsjEarthUI

导出图片

Open
#7 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

奋斗的小鸟
@vtxf
![image](https://user-images.githubusercontent.com/13550568/68120575-b3bcde80-ff40-11e9-955a-3b62829b211a.png)
请问一下,我想设置这个参数,是不是没法设置啊
奋斗的小鸟 2019/11/4 18:13:29
没这个属性,导出图片没法导出

vtxf 2019/11/4 18:14:31
可以设置,
不过,earthsdk中有现成的导出图片的接口
18:15:27
奋斗的小鸟 2019/11/4 18:15:27
好的,demo中有的吗?好像没找到

vtxf 2019/11/4 18:16:48
还没有示例。。
18:17:05
vtxf 2019/11/4 18:17:05
var img;
earth.capture(128, 128).then(image => img = image);

vtxf 2019/11/4 18:17:15
这样使用就好,128是宽度
奋斗的小鸟 2019/11/4 18:17:32
好的,我试试,谢谢
奋斗的小鸟 2019/11/4 18:18:57
[图片],那要是设置这个属性,怎么设置呢?
18:25:52
vtxf 2019/11/4 18:25:52
new Earth(container, { ... });

vtxf 2019/11/4 18:26:05
第二个参数,和Cesium的Viewer一样
奋斗的小鸟 2019/11/4 18:26:28
/强
18:33:59
acound 2019/11/4 18:33:59
Cesium场景截屏 https://www.jianshu.com/p/4317e3bbfb62

Contributor guide

No contributing guide indexed for this repository

Research direction

No repository file or test is named. Start by locating the Earth constructor and the earth.capture API referenced in the discussion, then check existing demos; done means adding a clear export-image example and documenting the relevant constructor options, if that is the intended change.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.