From 089aa8cf8c720ca7f73cddb5446cb03b999356e3 Mon Sep 17 00:00:00 2001 From: Igor Dykhta Date: Wed, 29 Jan 2025 17:28:40 +0200 Subject: [PATCH] [chore] vector tiles refactoring (#2945) - enable vector tile layer - enable release banner --------- Signed-off-by: Ihor Dykhta --- examples/demo-app/src/factories/load-data-modal.js | 2 +- src/layers/src/index.ts | 10 +++++----- src/utils/src/application-config.ts | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/demo-app/src/factories/load-data-modal.js b/examples/demo-app/src/factories/load-data-modal.js index ebf3da570d..110006ab32 100644 --- a/examples/demo-app/src/factories/load-data-modal.js +++ b/examples/demo-app/src/factories/load-data-modal.js @@ -29,7 +29,7 @@ const CustomLoadDataModalFactory = (...deps) => { // add more loading methods const loadingMethods = [ defaultLoadingMethods.find(lm => lm.id === 'upload'), - // defaultLoadingMethods.find(lm => lm.id === 'tileset'), + defaultLoadingMethods.find(lm => lm.id === 'tileset'), additionalMethods.remote, defaultLoadingMethods.find(lm => lm.id === 'storage'), additionalMethods.sample diff --git a/src/layers/src/index.ts b/src/layers/src/index.ts index 1f89ea8e4a..84d3e05173 100644 --- a/src/layers/src/index.ts +++ b/src/layers/src/index.ts @@ -40,7 +40,7 @@ import {default as S2GeometryLayer} from './s2-geometry-layer/s2-geometry-layer' export {defaultElevation as s2DefaultElevation} from './s2-geometry-layer/s2-geometry-layer'; export {getS2Center} from './s2-geometry-layer/s2-utils'; export {default as AggregationLayer} from './aggregation-layer'; -// import {default as VectorTileLayer} from './vector-tile/vector-tile-layer'; +import {default as VectorTileLayer} from './vector-tile/vector-tile-layer'; export {default as VectorTileIcon} from './vector-tile/vector-tile-icon'; export {default as VectorTileLayer} from './vector-tile/vector-tile-layer'; @@ -72,8 +72,8 @@ export const KeplerGlLayers = { H3Layer, ScenegraphLayer, TripLayer, - S2GeometryLayer - // VectorTileLayer + S2GeometryLayer, + VectorTileLayer }; export type LayerClassesType = typeof LayerClasses; @@ -90,8 +90,8 @@ export const LayerClasses = { [LAYER_TYPES.hexagonId]: H3Layer, [LAYER_TYPES['3D']]: ScenegraphLayer, [LAYER_TYPES.trip]: TripLayer, - [LAYER_TYPES.s2]: S2GeometryLayer - // [LAYER_TYPES['vectorTile']]: VectorTileLayer + [LAYER_TYPES.s2]: S2GeometryLayer, + [LAYER_TYPES['vectorTile']]: VectorTileLayer }; export * from './mapbox-utils'; diff --git a/src/utils/src/application-config.ts b/src/utils/src/application-config.ts index 1c73f83d87..3bc979a4a7 100644 --- a/src/utils/src/application-config.ts +++ b/src/utils/src/application-config.ts @@ -73,7 +73,7 @@ const DEFAULT_APPLICATION_CONFIG: Required table: null, useArrowProgressiveLoading: true, - showReleaseBanner: false + showReleaseBanner: true }; const applicationConfig: Required> =