Skip to content

Commit

Permalink
[chore] adds additional properties to mock basemaps (#2411)
Browse files Browse the repository at this point in the history
Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
Co-authored-by: Jacob Wasilkowski <4933392+jwasilgeo@users.noreply.github.com>
  • Loading branch information
igorDykhta and jwasilgeo committed Oct 27, 2023
1 parent df1397f commit 7fae622
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion test/helpers/mock-map-styles.js
Expand Up @@ -18,14 +18,17 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

import {DEFAULT_LAYER_GROUPS} from '@kepler.gl/constants';
import {BASE_MAP_COLOR_MODES, DEFAULT_LAYER_GROUPS} from '@kepler.gl/constants';

/** @type {import('@kepler.gl/reducers').BaseMapStyle} */
export const MOCK_MAP_STYLE = {
id: 'dark',
label: 'Dark',
url: 'mapbox://styles/xxxxx/abcdefg',
icon: 'https://my.icon.net/kepler.gl/test/taro.png',
layerGroups: DEFAULT_LAYER_GROUPS,
colorMode: BASE_MAP_COLOR_MODES.DARK,
complimentaryStyleId: 'light',
style: {
version: 8,
name: 'Mock-Map-Style',
Expand Down Expand Up @@ -89,12 +92,15 @@ export const MOCK_MAP_STYLE = {
}
};

/** @type {import('@kepler.gl/reducers').BaseMapStyle} */
export const MOCK_MAP_STYLE_LIGHT = {
id: 'light',
label: 'Light',
url: 'mapbox://styles/xxxxx/hijklmn',
icon: 'https://my.icon.net/kepler.gl/test/blue.png',
layerGroups: DEFAULT_LAYER_GROUPS,
colorMode: BASE_MAP_COLOR_MODES.LIGHT,
complimentaryStyleId: 'dark',
style: {
version: 8,
name: 'Mock-Map-Style-LIGHT',
Expand Down Expand Up @@ -163,3 +169,9 @@ export const MOCK_MAP_STYLE_LIGHT = {
]
}
};

/** @type {import('@kepler.gl/reducers').MapStyles} */
export const MOCK_MAP_STYLES = {
[MOCK_MAP_STYLE.id]: MOCK_MAP_STYLE,
[MOCK_MAP_STYLE_LIGHT.id]: MOCK_MAP_STYLE_LIGHT
};

0 comments on commit 7fae622

Please sign in to comment.