Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

Unified app name (#41)

Shan Heabb79e5cd847
diff --git a/src/components/common/logo.js b/src/components/common/logo.js
index 4812ba3f3..5a9f494ef 100644
--- a/src/components/common/logo.js
+++ b/src/components/common/logo.js
@@ -20,10 +20,11 @@
import React from 'react';
import styled from 'styled-components';
+import {KEPLER_GL_NAME, KEPLER_GL_VERSION} from 'constants/default-settings';
const defaultProps = {
- appName: 'Kepler.Gl',
- version: 'v1.0'
+ appName: KEPLER_GL_NAME,
+ version: KEPLER_GL_VERSION
};
const LogoTitle = styled.div`
diff --git a/src/components/kepler-gl.js b/src/components/kepler-gl.js
index 83215ed70..97e12caf3 100644
--- a/src/components/kepler-gl.js
+++ b/src/components/kepler-gl.js
@@ -30,7 +30,8 @@ import * as MapStateActions from 'actions/map-state-actions';
import * as MapStyleActions from 'actions/map-style-actions';
import * as UIStateActions from 'actions/ui-state-actions';
-import {EXPORT_IMAGE_ID, DIMENSIONS, DEFAULT_MAP_STYLES} from 'constants/default-settings';
+import {EXPORT_IMAGE_ID, DIMENSIONS, DEFAULT_MAP_STYLES,
+ KEPLER_GL_NAME, KEPLER_GL_VERSION} from 'constants/default-settings';
import SidePanelFactory from './side-panel';
import MapContainerFactory from './map-container';
@@ -96,8 +97,8 @@ function KeplerGlFactory(
mapStyles: [],
width: 800,
height: 800,
- appName: 'Kepler.Gl',
- version: 'v1.0'
+ appName: KEPLER_GL_NAME,
+ version: KEPLER_GL_VERSION
};
componentWillMount() {
diff --git a/src/constants/default-settings.js b/src/constants/default-settings.js
index 78b04abbf..fa48109ec 100644
--- a/src/constants/default-settings.js
+++ b/src/constants/default-settings.js
@@ -41,6 +41,9 @@ import {
CursorClick
} from 'components/common/icons';
+export const KEPLER_GL_NAME = 'Kepler.gl';
+export const KEPLER_GL_VERSION = 'v1.0';
+
export const DIMENSIONS = {
sidePanel: {
width: 300,