Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Xun Li <lixun910@gmail.com>
  • Loading branch information
lixun910 committed Apr 22, 2024
1 parent 762d2c7 commit 6d36a75
Show file tree
Hide file tree
Showing 4 changed files with 18,988 additions and 26,004 deletions.
1 change: 0 additions & 1 deletion src/layers/src/heatmap-layer/heatmap-layer.ts
Expand Up @@ -224,7 +224,6 @@ class HeatmapLayer extends MapboxGLLayer {
const getPosition = this.getPositionAccessor(dataContainer);
const {data} = this.updateData(datasets, oldLayerData);

// @ts-ignore datasets is not typed
const newConfig = this.computeHeatmapConfiguration(this.config, datasets);
newConfig.id = this.id;

Expand Down
1 change: 0 additions & 1 deletion src/layers/src/layer-utils.ts
Expand Up @@ -63,7 +63,6 @@ export function getGeojsonLayerMetaFromArrow({
};
// create binary data from arrow data for GeoJsonLayer
const {binaryGeometries, featureTypes, bounds, meanCenters} = getBinaryGeometriesFromArrow(
// @ts-ignore Fix the type error later, need to upgrade apache-arrow in kepler.gl to v15 as in loader.gl
geoColumn,
encoding,
options
Expand Down
4 changes: 2 additions & 2 deletions src/reducers/src/vis-state-selectors.ts
Expand Up @@ -8,13 +8,13 @@ const DEFAULT_FILE_EXTENSIONS = ['csv', 'json', 'geojson', 'arrow'];
const DEFAULT_FILE_FORMATS = ['CSV', 'Json', 'GeoJSON', 'Arrow'];

export const getFileFormatNames = createSelector(
// @ts-expect-error
state => state.loaders,
// @ts-ignore loaders is unknonwn type
loaders => [...DEFAULT_FILE_FORMATS, ...loaders.map(loader => loader.name)]
);

export const getFileExtensions = createSelector(
// @ts-expect-error
state => state.loaders,
// @ts-ignore loaders is unknonwn type
loaders => [...DEFAULT_FILE_EXTENSIONS, ...loaders.flatMap(loader => loader.extensions)]
);

0 comments on commit 6d36a75

Please sign in to comment.