Skip to content

Commit

Permalink
feat(viewer-style): remove moon, set background color
Browse files Browse the repository at this point in the history
  • Loading branch information
KatvonRivia committed Dec 2, 2019
1 parent cdd2006 commit 839017b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
19 changes: 19 additions & 0 deletions src/scripts/components/globe/globe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ const Globe: FunctionComponent<Props> = ({
scopedViewer.scene.sun.show = false;
}

if (scopedViewer.scene.moon) {
scopedViewer.scene.moon.show = false;
}

if (scopedViewer.scene.skyBox) {
scopedViewer.scene.skyBox.show = false;
}
Expand All @@ -105,6 +109,21 @@ const Globe: FunctionComponent<Props> = ({
scopedViewer.scene.skyAtmosphere.show = false;
}

if (scopedViewer.scene.backgroundColor) {
scopedViewer.scene.backgroundColor = new Cesium.Color(
0.12,
0.12,
0.12,
0
);
}

// @ts-ignore
if (scopedViewer.scene.globe.showGroundAtmosphere) {
// @ts-ignore
scopedViewer.scene.globe.showGroundAtmosphere = false;
}

// save viewer reference
setViewer(scopedViewer);

Expand Down
5 changes: 1 addition & 4 deletions storage/stories/story5/story5-de.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
"id": "story5",
"slides": [
{
"text": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolor option isi nobis quas ut.",
"images": [
"https://storage.googleapis.com/esa-cfs-storage/stories/story5/assets/story5.jpeg"
]
"text": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolor option isi nobis quas ut."
},
{
"text": "Exercitationem, sapiente. Praesentium quidem mollitia explicabo voluptatem aperiam deleniti ut sunt atque eaque, voluptate commodi in.",
Expand Down

0 comments on commit 839017b

Please sign in to comment.