Refactoring: include special layers in the indexes

This commit is contained in:
Pieter Vander Vennet 2023-04-23 13:14:54 +02:00
parent 476423f9d1
commit 8a40b9cbe6

View file

@ -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,