Skip to content

Commit 6804129

Browse files
authored
[chore] 3.1.0-alpha.2 release (#2855)
- bump version for release - temporarily disable vector tile layer plumbing - ts fixes required for npm-publish - prepublish to prepublishOnly script
1 parent f9b385a commit 6804129

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+356
-273
lines changed

CHANGELOG.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,51 @@ Each version should:
1515
Ref: http://keepachangelog.com/en/0.3.0/
1616
-->
1717

18+
## [3.1.0-alpha.2] - December 24 2024
19+
20+
- f9b385a6e [fix] Fixed time filter bug where points located at the borders of the domains were not correctly displayed (#2854)
21+
- 59abc6a19 [fix] fix for custom color scales with tile layer (#2853)
22+
- 3a4bf667f [feat] histogram and point layer fixes (#2852)
23+
- f9c52e538 [feat] color scale histogram (#2851)
24+
- 3e7dc937a [fix] custom palette issues (#2850)
25+
- d55797991 [docs] Replace yarn global add with yarn dlx for puppeteer installation (#2849)
26+
- e106c1927 [feat] Plumbing for vector tile layer (#2839)
27+
- a2abbf72d [fix] fix yarn cover regression (#2846)
28+
- 6925bd429 [docs] update demo-app/README.md (#2847)
29+
- f05b6e37d [chore] Bump nanoid from 3.3.7 to 3.3.8 in /website (#2840)
30+
- 4baa44d9b [chore] Bump nanoid from 3.3.7 to 3.3.8 (#2837)
31+
- b09d7eb95 [Enhancement] support mapbox url protocol (#2693)
32+
- 215383661 [Feat] Redesign color range to use chormajs and d3 color function (#2835)
33+
- bded7af76 [Feat] handle layer color scale by field.domainQuantiles (#2829)
34+
- 5f7c26bd0 [fix] Prevent duplicate legend in line and arc layers (#2830)
35+
- 639c7a5b9 [feat] Apply new legend style (#2831)
36+
- f9c214dd5 [chore] getSelectedFeature (#2832)
37+
- efdf2ea8d [chore] ts fixes (#2827)
38+
- 074d123dd [Feat] Add display format setting for table/tooltip (#2826)
39+
- aec75d819 [Chore] Minor ts refactoring (#2825)
40+
- 1825b6572 [fix] Expand legend (#2824)
41+
- bb6a376e8 [fix] adjust time range filter on value set (#2823)
42+
- cef3faf19 [Feat] add h3 typed column (#2822)
43+
- c5d42ddc9 [fix] Fix multiple field filtering in setFilterUpdater (#2821)
44+
- c4d1cfff0 [FEAT] support domain.domainStops in layer color, render color legend based on zoom (#2815)
45+
- 3a4feac59 [fix] Line layer is not displayed for between hex ids (#2820)
46+
- 89411c820 [fix] Typescript 4.4 fixes (#2816)
47+
- 240289603 [feat] Show selected fields in the tooltip for aggregation layers (#2814)
48+
- 95c6ed14b [chore] Bump elliptic from 6.5.7 to 6.6.1 in /bindings/kepler.gl-jupyter/js (#2818)
49+
- fb3fa7b58 [chore] Bump cross-spawn from 6.0.5 to 6.0.6 in /website (#2817)
50+
- f476a1c4c [chore] Bump elliptic from 6.5.7 to 6.6.0 (#2720)
51+
- c727356f7 [chore] Bump cross-spawn from 6.0.5 to 6.0.6 (#2772)
52+
- 3950d73ab [chore] Fixes in README.md (#2810)
53+
- 786aa36cf [Fix] Don't modify height for with fixed height enabled; Height UI unification (#2804)
54+
- 2178d9057 [fix] show sync layer animations when there is one dataset (#2803)
55+
- 6f35313f7 [chore] timeline refactoring (#2802)
56+
- d50bbc831 [fix] Updated plot when changing cross filters (#2801)
57+
- b4dfa2fce [fix] disable Share Map for FSQ provider (#2808)
58+
- 86b5dda7e [Feat] AI Assistant [2] (#2777)
59+
- 5a0cbca66 [Bug] Fix issue with React StrictMode causing Dataset table to not display (#2683)
60+
- b147db8d5 [chore] Local Development Guide Update (#2806)
61+
- 6223be939 [fix] Foursquare storage provider improvements (#2800)
62+
1863
## [3.1.0-alpha.1] - December 3 2024
1964

2065
- f6b37c6af [fix] fixes for exported maps

examples/demo-app/src/factories/load-data-modal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const CustomLoadDataModalFactory = (...deps) => {
2929
// add more loading methods
3030
const loadingMethods = [
3131
defaultLoadingMethods.find(lm => lm.id === 'upload'),
32-
defaultLoadingMethods.find(lm => lm.id === 'tileset'),
32+
// defaultLoadingMethods.find(lm => lm.id === 'tileset'),
3333
additionalMethods.remote,
3434
defaultLoadingMethods.find(lm => lm.id === 'storage'),
3535
additionalMethods.sample

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "kepler.gl",
33
"author": "Shan He <[email protected]>",
4-
"version": "3.1.0-alpha.1",
4+
"version": "3.1.0-alpha.2",
55
"description": "kepler.gl is a webgl based application to visualize large scale location data in the browser",
66
"license": "MIT",
77
"main": "dist/index.js",
@@ -24,9 +24,9 @@
2424
"./src/localization",
2525
"./src/deckgl-layers",
2626
"./src/deckgl-arrow-layers",
27+
"./src/table",
2728
"./src/layers",
2829
"./src/schemas",
29-
"./src/table",
3030
"./src/cloud-providers",
3131
"./src/processors",
3232
"./src/tasks",
@@ -103,7 +103,7 @@
103103
"@deck.gl/mapbox": "^8.9.27",
104104
"@hubble.gl/core": "1.2.0-alpha.6",
105105
"@hubble.gl/react": "1.2.0-alpha.6",
106-
"@kepler.gl/components": "3.1.0-alpha.1",
106+
"@kepler.gl/components": "3.1.0-alpha.2",
107107
"@loaders.gl/polyfills": "^4.3.2",
108108
"@types/mapbox__geo-viewport": "^0.4.1",
109109
"html-webpack-plugin": "^4.3.0",

src/actions/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@kepler.gl/actions",
33
"author": "Shan He <[email protected]>",
4-
"version": "3.1.0-alpha.1",
4+
"version": "3.1.0-alpha.2",
55
"description": "kepler.gl constants used by kepler.gl components, actions and reducers",
66
"license": "MIT",
77
"main": "dist/index.js",
@@ -22,7 +22,7 @@
2222
"build": "rm -fr dist && babel src --out-dir dist --source-maps inline --extensions '.ts,.tsx,.js,.jsx' --ignore '**/*.d.ts'",
2323
"build:umd": "NODE_OPTIONS=--openssl-legacy-provider webpack --config ./webpack/umd.js --progress --env.prod",
2424
"build:types": "tsc --project ./tsconfig.production.json",
25-
"prepublish": "babel-node ../../scripts/license-header/bin --license ../../FILE-HEADER && yarn build && yarn build:types",
25+
"prepublishOnly": "babel-node ../../scripts/license-header/bin --license ../../FILE-HEADER && yarn build && yarn build:types",
2626
"stab": "mkdir -p dist && touch dist/index.js"
2727
},
2828
"files": [
@@ -31,11 +31,11 @@
3131
],
3232
"dependencies": {
3333
"@deck.gl/core": "^8.9.27",
34-
"@kepler.gl/cloud-providers": "3.1.0-alpha.1",
35-
"@kepler.gl/constants": "3.1.0-alpha.1",
36-
"@kepler.gl/layers": "3.1.0-alpha.1",
37-
"@kepler.gl/processors": "3.1.0-alpha.1",
38-
"@kepler.gl/types": "3.1.0-alpha.1",
34+
"@kepler.gl/cloud-providers": "3.1.0-alpha.2",
35+
"@kepler.gl/constants": "3.1.0-alpha.2",
36+
"@kepler.gl/layers": "3.1.0-alpha.2",
37+
"@kepler.gl/processors": "3.1.0-alpha.2",
38+
"@kepler.gl/types": "3.1.0-alpha.2",
3939
"@reduxjs/toolkit": "^1.7.2",
4040
"@types/lodash.curry": "^4.1.7",
4141
"@types/react-redux": "^7.1.23",

src/ai-assistant/package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@kepler.gl/ai-assistant",
33
"author": "Xun Li<[email protected]>",
4-
"version": "3.1.0-alpha.1",
4+
"version": "3.1.0-alpha.2",
55
"description": "kepler.gl AI assistant",
66
"license": "MIT",
77
"main": "dist/index.js",
@@ -22,19 +22,20 @@
2222
"build": "rm -fr dist && babel src --out-dir dist --source-maps inline --extensions '.ts,.tsx,.js,.jsx' --ignore '**/*.d.ts'",
2323
"build:umd": "NODE_OPTIONS=--openssl-legacy-provider webpack --config ./webpack/umd.js --progress --env.prod",
2424
"build:types": "tsc --project ./tsconfig.production.json",
25-
"prepublish": "babel-node ../../scripts/license-header/bin --license ../../FILE-HEADER && yarn build && yarn build:types",
25+
"prepublishOnly": "babel-node ../../scripts/license-header/bin --license ../../FILE-HEADER && yarn build && yarn build:types",
2626
"stab": "mkdir -p dist && touch dist/index.js"
2727
},
2828
"files": [
2929
"dist",
3030
"umd"
3131
],
3232
"dependencies": {
33-
"@kepler.gl/components": "3.1.0-alpha.1",
34-
"@kepler.gl/constants": "3.1.0-alpha.1",
35-
"@kepler.gl/layers": "3.1.0-alpha.1",
36-
"@kepler.gl/types": "3.1.0-alpha.1",
37-
"@kepler.gl/utils": "3.1.0-alpha.1",
33+
"@kepler.gl/components": "3.1.0-alpha.2",
34+
"@kepler.gl/constants": "3.1.0-alpha.2",
35+
"@kepler.gl/layers": "3.1.0-alpha.2",
36+
"@kepler.gl/table": "3.1.0-alpha.2",
37+
"@kepler.gl/types": "3.1.0-alpha.2",
38+
"@kepler.gl/utils": "3.1.0-alpha.2",
3839
"color-interpolate": "^1.0.5",
3940
"echarts": "^5.5.1",
4041
"global": "^4.3.0",

src/ai-assistant/src/constants.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-License-Identifier: MIT
2+
// Copyright contributors to the kepler.gl project
3+
14
export const TASK_LIST =
25
'1. Show dataset/layer/variable info.\n2. Change the basemap style.\n3. Load data from url.\n4. Create a map layer using variable.\n5. Filter the data of a variable.\n6. Create a histogram.';
36

src/ai-assistant/src/tools/filter-function.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-License-Identifier: MIT
2+
// Copyright contributors to the kepler.gl project
3+
14
import {useSelector} from 'react-redux';
25

36
import {ActionHandler, createOrUpdateFilter, setFilter, setFilterPlot} from '@kepler.gl/actions';

src/ai-assistant/src/tools/layer-creation-function.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-License-Identifier: MIT
2+
// Copyright contributors to the kepler.gl project
3+
14
import {ActionHandler, addLayer} from '@kepler.gl/actions';
25
import {LayerClasses} from '@kepler.gl/layers';
36
import KeplerTable, {Datasets} from '@kepler.gl/table';

src/ai-assistant/src/tools/layer-style-function.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-License-Identifier: MIT
2+
// Copyright contributors to the kepler.gl project
3+
14
// This file is used to call the LAYER_VISUAL_CHANNEL_CHANGE to update the layer style
25

36
import {

src/ai-assistant/src/tools/utils.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
// SPDX-License-Identifier: MIT
2+
// Copyright contributors to the kepler.gl project
3+
4+
import interpolate from 'color-interpolate';
5+
16
import {Layer} from '@kepler.gl/layers';
27
import {Datasets, KeplerTable} from '@kepler.gl/table';
3-
import interpolate from 'color-interpolate';
48

59
export function checkDatasetNotExists(
610
datasets: Datasets,

src/cloud-providers/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@kepler.gl/cloud-providers",
33
"author": "Shan He <[email protected]>",
4-
"version": "3.1.0-alpha.1",
4+
"version": "3.1.0-alpha.2",
55
"description": "kepler.gl constants used by kepler.gl components, actions and reducers",
66
"license": "MIT",
77
"main": "dist/index.js",
@@ -22,15 +22,15 @@
2222
"build": "rm -fr dist && babel src --out-dir dist --source-maps inline --extensions '.ts,.tsx,.js,.jsx' --ignore '**/*.d.ts'",
2323
"build:umd": "NODE_OPTIONS=--openssl-legacy-provider webpack --config ./webpack/umd.js --progress --env.prod",
2424
"build:types": "tsc --project ./tsconfig.production.json",
25-
"prepublish": "babel-node ../../scripts/license-header/bin --license ../../FILE-HEADER && yarn build && yarn build:types",
25+
"prepublishOnly": "babel-node ../../scripts/license-header/bin --license ../../FILE-HEADER && yarn build && yarn build:types",
2626
"stab": "mkdir -p dist && touch dist/index.js"
2727
},
2828
"files": [
2929
"dist",
3030
"umd"
3131
],
3232
"dependencies": {
33-
"@kepler.gl/types": "3.1.0-alpha.1",
33+
"@kepler.gl/types": "3.1.0-alpha.2",
3434
"react": "^18.2.0"
3535
},
3636
"nyc": {

src/common-utils/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@kepler.gl/common-utils",
33
"author": "Shan He <[email protected]>",
4-
"version": "3.1.0-alpha.1",
4+
"version": "3.1.0-alpha.2",
55
"description": "kepler.gl common utils",
66
"license": "MIT",
77
"main": "dist/index.js",
@@ -22,16 +22,16 @@
2222
"build": "rm -fr dist && babel src --out-dir dist --source-maps inline --extensions '.ts,.tsx,.js,.jsx' --ignore '**/*.d.ts'",
2323
"build:umd": "NODE_OPTIONS=--openssl-legacy-provider webpack --config ./webpack/umd.js --progress --env.prod",
2424
"build:types": "tsc --project ./tsconfig.production.json",
25-
"prepublish": "babel-node ../../scripts/license-header/bin --license ../../FILE-HEADER && yarn build && yarn build:types",
25+
"prepublishOnly": "babel-node ../../scripts/license-header/bin --license ../../FILE-HEADER && yarn build && yarn build:types",
2626
"stab": "mkdir -p dist && touch dist/index.js"
2727
},
2828
"files": [
2929
"dist",
3030
"umd"
3131
],
3232
"dependencies": {
33-
"@kepler.gl/constants": "3.1.0-alpha.1",
34-
"@kepler.gl/types": "3.1.0-alpha.1",
33+
"@kepler.gl/constants": "3.1.0-alpha.2",
34+
"@kepler.gl/types": "3.1.0-alpha.2",
3535
"d3-array": "^2.8.0",
3636
"global": "^4.3.0",
3737
"type-analyzer": "0.4.0"

src/components/package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@kepler.gl/components",
33
"author": "Shan He <[email protected]>",
4-
"version": "3.1.0-alpha.1",
4+
"version": "3.1.0-alpha.2",
55
"description": "kepler.gl constants used by kepler.gl components, actions and reducers",
66
"license": "MIT",
77
"main": "dist/index.js",
@@ -22,7 +22,7 @@
2222
"build": "rm -fr dist && ../../node_modules/.bin/babel src --out-dir dist --source-maps inline --extensions '.ts,.tsx,.js,.jsx' --ignore '**/*.d.ts'",
2323
"build:umd": "NODE_OPTIONS=--openssl-legacy-provider webpack --config ./webpack/umd.js --progress --env.prod",
2424
"build:types": "tsc --project ./tsconfig.production.json",
25-
"prepublish": "babel-node ../../scripts/license-header/bin --license ../../FILE-HEADER && yarn build && yarn build:types",
25+
"prepublishOnly": "babel-node ../../scripts/license-header/bin --license ../../FILE-HEADER && yarn build && yarn build:types",
2626
"stab": "mkdir -p dist && touch dist/index.js"
2727
},
2828
"files": [
@@ -37,20 +37,20 @@
3737
"@dnd-kit/sortable": "^7.0.2",
3838
"@dnd-kit/utilities": "^3.2.1",
3939
"@floating-ui/react": "0.25.1",
40-
"@kepler.gl/actions": "3.1.0-alpha.1",
41-
"@kepler.gl/cloud-providers": "3.1.0-alpha.1",
42-
"@kepler.gl/common-utils": "3.1.0-alpha.1",
43-
"@kepler.gl/constants": "3.1.0-alpha.1",
44-
"@kepler.gl/effects": "3.1.0-alpha.1",
45-
"@kepler.gl/layers": "3.1.0-alpha.1",
46-
"@kepler.gl/localization": "3.1.0-alpha.1",
47-
"@kepler.gl/processors": "3.1.0-alpha.1",
48-
"@kepler.gl/reducers": "3.1.0-alpha.1",
49-
"@kepler.gl/schemas": "3.1.0-alpha.1",
50-
"@kepler.gl/styles": "3.1.0-alpha.1",
51-
"@kepler.gl/table": "3.1.0-alpha.1",
52-
"@kepler.gl/types": "3.1.0-alpha.1",
53-
"@kepler.gl/utils": "3.1.0-alpha.1",
40+
"@kepler.gl/actions": "3.1.0-alpha.2",
41+
"@kepler.gl/cloud-providers": "3.1.0-alpha.2",
42+
"@kepler.gl/common-utils": "3.1.0-alpha.2",
43+
"@kepler.gl/constants": "3.1.0-alpha.2",
44+
"@kepler.gl/effects": "3.1.0-alpha.2",
45+
"@kepler.gl/layers": "3.1.0-alpha.2",
46+
"@kepler.gl/localization": "3.1.0-alpha.2",
47+
"@kepler.gl/processors": "3.1.0-alpha.2",
48+
"@kepler.gl/reducers": "3.1.0-alpha.2",
49+
"@kepler.gl/schemas": "3.1.0-alpha.2",
50+
"@kepler.gl/styles": "3.1.0-alpha.2",
51+
"@kepler.gl/table": "3.1.0-alpha.2",
52+
"@kepler.gl/types": "3.1.0-alpha.2",
53+
"@kepler.gl/utils": "3.1.0-alpha.2",
5454
"@mapbox/mapbox-sdk": "^0.15.3",
5555
"@nebula.gl/edit-modes": "1.0.2-alpha.1",
5656
"@tippyjs/react": "^4.2.0",

src/components/src/common/animation-control/floating-time-display.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export default function FloatingTimeDisplayFactory() {
144144

145145
return accu;
146146
},
147-
{displayDate: [], displayTime: []}
147+
{displayDate: [], displayTime: []} as {displayDate: string[], displayTime: string[]}
148148
);
149149
}, [currentTime, timeFormat, defaultTimeFormat, timezone]);
150150

src/components/src/map/map-legend.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ export function LayerLegendContentFactory(
340340
}) => {
341341
const visualChannels = layer.getLegendVisualChannels();
342342
const channelKeys = Object.values(visualChannels);
343-
const colorChannels = channelKeys.filter(isColorChannel);
343+
const colorChannels = channelKeys.filter(isColorChannel) as VisualChannel[];
344344
const nonColorChannels = channelKeys.filter(vc => !isColorChannel(vc));
345345
const width = containerW - 2 * DIMENSIONS.mapControl.padding;
346346

@@ -372,7 +372,7 @@ export function LayerLegendContentFactory(
372372
actionIcons={actionIcons}
373373
/>
374374
))}
375-
{nonColorChannels.map(visualChannel => {
375+
{nonColorChannels.map((visualChannel: VisualChannel) => {
376376
const matchCondition = !visualChannel.condition || visualChannel.condition(layer.config);
377377
const enabled = layer.config[visualChannel.field] || visualChannel.defaultMeasure;
378378

src/components/src/modals/tilesets-modals/load-tileset.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import LoadDataFooter from './load-data-footer';
1515
// import TilesetIcon from './tileset-icon';
1616
import TilesetVectorForm from './tileset-vector-form';
1717

18-
const WIDTH_ICON = '62px';
18+
// const WIDTH_ICON = '62px';
1919

2020
const LoadTilesetTabContainer = styled.div`
2121
color: ${props => props.theme.AZURE};
@@ -27,11 +27,12 @@ const Container = styled.div`
2727
background-color: ${props => props.theme.WHITE};
2828
`;
2929

30-
// @ts-expect-error
30+
/*
3131
const TilesetTypeContainer = styled.div`
3232
display: grid;
3333
grid-template-columns: repeat(4, ${WIDTH_ICON});
3434
`;
35+
*/
3536

3637
const MetaContainer = styled.div`
3738
display: flex;
@@ -96,8 +97,7 @@ function LoadTilesetTabFactory() {
9697
isAddingDatasets,
9798
intl
9899
}) => {
99-
// @ts-expect-error
100-
const [typeIndex, setTypeIndex] = useState<number>(0);
100+
const [typeIndex/*, setTypeIndex*/] = useState<number>(0);
101101
const [response, setResponse] = useState<MetaResponse>({});
102102

103103
const error = response.error;

src/components/src/side-panel/layer-panel/layer-column-mode-config.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ export type LayerColumnModeConfigProps = {
209209
fieldPairs?: FieldPair[];
210210
openModal: (l: LayerInfoModal) => void;
211211
updateLayerConfig: (config: Partial<LayerBaseConfig>) => void;
212+
updateLayerType: (type: string) => void;
212213
};
213214

214215
LayerColumnModeConfigFactory.deps = [LayerColumnConfigFactory, ColumnModeConfigFactory];

src/components/src/side-panel/layer-panel/layer-configurator.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,8 +1070,8 @@ export default function LayerConfiguratorFactory(
10701070
return (
10711071
<StyledLayerConfigurator>
10721072
{layer.layerInfoModal && !layer.supportedColumnModes ? (
1073-
// @ts-expect-error wrong handler type?
1074-
<HowToButton onClick={() => openModal(layer.layerInfoModal)} />
1073+
// TODO figure out handler type. String or return type of layer.layerInfoModal ?
1074+
<HowToButton onClick={() => openModal(layer.layerInfoModal as any)} />
10751075
) : null}
10761076
<LayerConfigGroup label={'layer.basic'} collapsible expanded={!layer.hasAllColumns()}>
10771077
<LayerTypeSelector
@@ -1094,8 +1094,8 @@ export default function LayerConfiguratorFactory(
10941094
supportedColumnModes={layer.supportedColumnModes}
10951095
id={layer.id}
10961096
layerConfig={layer.config}
1097-
// @ts-expect-error wrong handler type?
1098-
openModal={openModal}
1097+
// TODO figure out handler type. String or return type of layer.layerInfoModal ?
1098+
openModal={openModal as any}
10991099
updateLayerConfig={updateLayerConfig}
11001100
updateLayerType={updateLayerType}
11011101
fields={fields}

0 commit comments

Comments
 (0)