Skip to content

Commit

Permalink
feat(globe): set basecolor
Browse files Browse the repository at this point in the history
* feat(globe): set basecolor

* feat(links): set link target
  • Loading branch information
pmast authored Jul 24, 2020
1 parent 6f41958 commit b9931b9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/scripts/components/globe/globe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,11 @@ const Globe: FunctionComponent<Props> = ({
// store the basemap imagery layer reference
basemapLayer = scopedViewer.scene.imageryLayers.get(0);

const color = Color.fromCssColorString('#10161A');
const baseColor = Color.fromCssColorString('#999999');
scopedViewer.scene.globe.baseColor = baseColor;

scopedViewer.scene.backgroundColor = color;
const backgroundColor = Color.fromCssColorString('#10161A');
scopedViewer.scene.backgroundColor = backgroundColor;

if (scopedViewer.scene.sun) {
scopedViewer.scene.sun.show = false;
Expand Down
1 change: 1 addition & 0 deletions src/scripts/components/layer-info/layer-info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const LayerInfo: FunctionComponent<Props> = ({layer}) => (
<div className={styles.description}>
<ReactMarkdown
source={layer.description}
linkTarget='_blank'
allowedTypes={[
'heading',
'text',
Expand Down
1 change: 1 addition & 0 deletions src/scripts/components/story-content/story-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const StoryContent: FunctionComponent<Props> = ({mode, slide, storyId}) => {
<ReactMarkdown
source={storyText}
transformImageUri={transformImageUri}
linkTarget='_blank'
allowedTypes={[
'heading',
'text',
Expand Down

0 comments on commit b9931b9

Please sign in to comment.