Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
Signed-off-by: Xun Li <[email protected]>
  • Loading branch information
lixun910 committed Nov 15, 2023
1 parent 1b9a845 commit 755006d
Show file tree
Hide file tree
Showing 10 changed files with 118 additions and 500 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -891,10 +891,6 @@ export default function LayerConfiguratorFactory(
);
}

_renderGeoarrowLayerConfig(props) {
return this._renderGeojsonLayerConfig(props);
}

_render3DLayerConfig({layer, visConfiguratorProps}) {
return (
<Fragment>
Expand Down
312 changes: 0 additions & 312 deletions src/layers/src/arrow-layer/arrow-layer.ts

This file was deleted.

14 changes: 9 additions & 5 deletions src/layers/src/geojson-layer/geojson-layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ export default class GeoJsonLayer extends Layer {
const getGeoColumn = geoColumnAccessor(this.config.columns);
const getGeoField = geoFieldAccessor(this.config.columns);

if (this.dataToFeature.length === 0) {
// if (this.dataToFeature.length === 0) {
const updateLayerMetaFunc =
dataContainer instanceof ArrowDataContainer
? getGeojsonLayerMetaFromArrow
Expand All @@ -431,9 +431,13 @@ export default class GeoJsonLayer extends Layer {
getGeoField
});

this.dataToFeature = dataToFeature;
// append new data from binaryGeometries to this.binaryFeatures
for (let i = this.dataToFeature.length; i < dataToFeature.length; ++i) {
this.dataToFeature.push(dataToFeature[i]);
}
// this.dataToFeature = dataToFeature;
this.updateMeta({bounds, fixedRadius, featureTypes});
}
// }
}

setInitialLayerConfig({dataContainer}) {
Expand Down Expand Up @@ -497,7 +501,7 @@ export default class GeoJsonLayer extends Layer {
const updateTriggers = {
...this.getVisualChannelUpdateTriggers(),
getFilterValue: gpuFilter.filterValueUpdateTriggers,
getFiltered: this.filteredIndexTrigger
// getFiltered: this.filteredIndexTrigger
};

const defaultLayerProps = this.getDefaultDeckLayerProps(opts);
Expand Down Expand Up @@ -531,7 +535,7 @@ export default class GeoJsonLayer extends Layer {
capRounded: true,
jointRounded: true,
updateTriggers,
extensions: [...defaultLayerProps.extensions, new FilterArrowExtension()],
// extensions: [...defaultLayerProps.extensions, new FilterArrowExtension()],
_subLayerProps: {
...(featureTypes?.polygon ? {'polygons-stroke': opaOverwrite} : {}),
...(featureTypes?.line ? {linestrings: opaOverwrite} : {}),
Expand Down
6 changes: 0 additions & 6 deletions src/layers/src/geojson-layer/geojson-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ export enum FeatureTypes {
}

/* eslint-enable */

type RawArrowFeature = {
encoding?: string;
data: any;
};

export function parseGeoJsonRawFeature(rawFeature: unknown): Feature | null {
if (typeof rawFeature === 'object') {
// Support GeoJson feature as object
Expand Down
Loading

0 comments on commit 755006d

Please sign in to comment.