Skip to content

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

[chore] ts fixes (#3086)

Igor Dykhta223d14b60bc9
diff --git a/src/ai-assistant/src/tools/echarts-tools.tsx b/src/ai-assistant/src/tools/echarts-tools.tsx
index f2b8c2651..ba4dc7393 100644
--- a/src/ai-assistant/src/tools/echarts-tools.tsx
+++ b/src/ai-assistant/src/tools/echarts-tools.tsx
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: MIT
+// Copyright contributors to the kepler.gl project
+
import {
boxplot,
BoxplotTool,
diff --git a/src/ai-assistant/src/tools/geo-tools.tsx b/src/ai-assistant/src/tools/geo-tools.tsx
index fbd74d8a4..3c8effbb7 100644
--- a/src/ai-assistant/src/tools/geo-tools.tsx
+++ b/src/ai-assistant/src/tools/geo-tools.tsx
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: MIT
+// Copyright contributors to the kepler.gl project
+
import React, {useEffect} from 'react';
import {useDispatch} from 'react-redux';
import {
diff --git a/src/ai-assistant/src/tools/kepler-tools/boundary-tool.tsx b/src/ai-assistant/src/tools/kepler-tools/boundary-tool.tsx
index c5938bee1..f1aab53df 100644
--- a/src/ai-assistant/src/tools/kepler-tools/boundary-tool.tsx
+++ b/src/ai-assistant/src/tools/kepler-tools/boundary-tool.tsx
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: MIT
+// Copyright contributors to the kepler.gl project
+
import {tool} from '@openassistant/utils';
import {z} from 'zod';
diff --git a/src/ai-assistant/src/tools/kepler-tools/index.ts b/src/ai-assistant/src/tools/kepler-tools/index.ts
index 540fb7bc3..a854b0f1b 100644
--- a/src/ai-assistant/src/tools/kepler-tools/index.ts
+++ b/src/ai-assistant/src/tools/kepler-tools/index.ts
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: MIT
+// Copyright contributors to the kepler.gl project
+
import {VisState} from '@kepler.gl/schemas';
import {basemap} from './basemap-tool';
diff --git a/src/ai-assistant/src/tools/kepler-tools/save-data-tool.tsx b/src/ai-assistant/src/tools/kepler-tools/save-data-tool.tsx
index 565c6342c..10d246d6b 100644
--- a/src/ai-assistant/src/tools/kepler-tools/save-data-tool.tsx
+++ b/src/ai-assistant/src/tools/kepler-tools/save-data-tool.tsx
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: MIT
+// Copyright contributors to the kepler.gl project
+
import {tool} from '@openassistant/utils';
import {getCachedData, generateId, removeCachedData} from '@openassistant/osm';
import {z} from 'zod';
diff --git a/src/ai-assistant/src/tools/lisa-tool.tsx b/src/ai-assistant/src/tools/lisa-tool.tsx
index ccd373307..d4c8b57d2 100644
--- a/src/ai-assistant/src/tools/lisa-tool.tsx
+++ b/src/ai-assistant/src/tools/lisa-tool.tsx
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: MIT
+// Copyright contributors to the kepler.gl project
+
import {useEffect} from 'react';
import {useDispatch, useSelector} from 'react-redux';
import {addDataToMap, addLayer} from '@kepler.gl/actions';
diff --git a/src/ai-assistant/src/tools/query-tool.tsx b/src/ai-assistant/src/tools/query-tool.tsx
index aa1f74b4a..7669f6684 100644
--- a/src/ai-assistant/src/tools/query-tool.tsx
+++ b/src/ai-assistant/src/tools/query-tool.tsx
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: MIT
+// Copyright contributors to the kepler.gl project
+
import React, {useEffect, useRef, useState} from 'react';
import {useDispatch, useSelector} from 'react-redux';
import {Datasets} from '@kepler.gl/table';
diff --git a/src/ai-assistant/src/tools/tools.tsx b/src/ai-assistant/src/tools/tools.tsx
index 3414c6db6..3b8d96c4b 100644
--- a/src/ai-assistant/src/tools/tools.tsx
+++ b/src/ai-assistant/src/tools/tools.tsx
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: MIT
+// Copyright contributors to the kepler.gl project
+
import {VisState} from '@kepler.gl/schemas';
import {Dispatch} from 'redux';
diff --git a/src/layers/src/raster-tile/raster-tile-layer.ts b/src/layers/src/raster-tile/raster-tile-layer.ts
index c893fdf25..3a308f4db 100644
--- a/src/layers/src/raster-tile/raster-tile-layer.ts
+++ b/src/layers/src/raster-tile/raster-tile-layer.ts
@@ -11,11 +11,11 @@ import {Matrix4} from 'math.gl';
import {PathLayer} from '@deck.gl/layers/typed';
import {DatasetType, PMTilesType, LAYER_TYPES} from '@kepler.gl/constants';
import {RasterLayer, RasterMeshLayer} from '@kepler.gl/deckgl-layers';
-import {Layer, VisualChannel} from '@kepler.gl/layers';
import {
LayerBaseConfig,
LayerColorConfig,
LayerHeightConfig,
+ VisualChannel,
VisConfigColorRange,
VisConfigSelection,
VisConfigBoolean,
@@ -114,8 +114,13 @@ export type RasterTileLayerVisConfigSettings = RasterTileLayerVisConfigCommonSet
singleBandName: VisConfigSelection;
};
-export default class RasterTileLayer extends Layer {
+type RasterTileLayerMeta = {
+ zRange: number[] | null;
+};
+
+export default class RasterTileLayer extends KeplerLayer {
declare visConfigSettings: RasterTileLayerVisConfigSettings;
+ declare meta: RasterTileLayerMeta;
/** Min bands image data value, based on the current viewport */
minViewportPixelValue = Infinity;