Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
[Feat] Add satellite basemap (#1007)
Shan He3f54b7ea16f1
diff --git a/src/constants/default-settings.js b/src/constants/default-settings.jsindex 2b7d2051d..d0e892276 100644--- a/src/constants/default-settings.js+++ b/src/constants/default-settings.js@@ -252,6 +252,12 @@ export const DEFAULT_MAP_STYLES = [url: 'mapbox://styles/uberdata/cjfxhlikmaj1b2soyzevnywgs',icon: `${ICON_PREFIX}/UBER_MUTED_NIGHT.png`,layerGroups: DEFAULT_LAYER_GROUPS+ },+ {+ id: 'satellite',+ label: 'Satellite',+ url: `mapbox://styles/mapbox/satellite-v9`,+ icon: `${ICON_PREFIX}/UBER_SATELLITE.png`}];diff --git a/test/browser/components/kepler-gl-test.js b/test/browser/components/kepler-gl-test.jsindex bde4fc602..8fda38d56 100644--- a/test/browser/components/kepler-gl-test.js+++ b/test/browser/components/kepler-gl-test.js@@ -270,6 +270,11 @@ test('Components -> KeplerGl -> Mount -> Load default map style task', t => {id: 'muted_night',url:'https://api.mapbox.com/styles/v1/uberdata/cjfxhlikmaj1b2soyzevnywgs?pluginName=Keplergl&access_token=smoothie-the-cat'+ },+ {+ id: 'satellite',+ url:+ 'https://api.mapbox.com/styles/v1/mapbox/satellite-v9?pluginName=Keplergl&access_token=smoothie-the-cat'}]};@@ -283,7 +288,8 @@ test('Components -> KeplerGl -> Mount -> Load default map style task', t => {{id: 'dark', style: {layers: [], name: 'dark'}},{id: 'light', style: {layers: [], name: 'light'}},{id: 'muted', style: {hello: 'world'}},- {id: 'muted_night', style: {world: 'hello'}}+ {id: 'muted_night', style: {world: 'hello'}},+ {id: 'satellite', style: {satellite: 'yes'}}]));@@ -303,6 +309,11 @@ test('Components -> KeplerGl -> Mount -> Load default map style task', t => {muted_night: {...DEFAULT_MAP_STYLES[3],style: {world: 'hello'}+ },+ satellite: {+ ...DEFAULT_MAP_STYLES[4],+ style: {satellite: 'yes'},+ layerGroups: []}};@@ -437,6 +448,11 @@ test('Components -> KeplerGl -> Mount -> Load custom map style task', t => {id: 'muted_night',url:'https://api.mapbox.com/styles/v1/uberdata/cjfxhlikmaj1b2soyzevnywgs?pluginName=Keplergl&access_token=smoothie-the-cat'+ },+ {+ id: 'satellite',+ url:+ 'https://api.mapbox.com/styles/v1/mapbox/satellite-v9?pluginName=Keplergl&access_token=smoothie-the-cat'}]};