From 8a40b9cbe65e318c1cab606ead678fdd7ac2706c Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sun, 23 Apr 2023 13:14:54 +0200 Subject: [PATCH] Refactoring: include special layers in the indexes --- Models/ThemeViewState.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Models/ThemeViewState.ts b/Models/ThemeViewState.ts index 5f71ce78e..de712afd0 100644 --- a/Models/ThemeViewState.ts +++ b/Models/ThemeViewState.ts @@ -406,8 +406,6 @@ export default class ThemeViewState implements SpecialVisualizationState { .get("range") ?.isDisplayed?.syncWith(this.featureSwitches.featureSwitchIsTesting, true) - // The following layers are _not_ indexed; they trigger to much and thus trigger the metatagging - const dontInclude = new Set(["gps_location", "gps_location_history", "gps_track"]) this.layerState.filteredLayers.forEach((flayer) => { const id = flayer.layerDef.id const features: FeatureSource = specialLayers[id] @@ -415,10 +413,8 @@ export default class ThemeViewState implements SpecialVisualizationState { return } - if (!dontInclude.has(id)) { - this.featureProperties.trackFeatureSource(features) - this.indexedFeatures.addSource(features) - } + this.featureProperties.trackFeatureSource(features) + // this.indexedFeatures.addSource(features) new ShowDataLayer(this.map, { features, doShowLayer: flayer.isDisplayed,