Fix: actually include _all_ features

This commit is contained in:
Pieter Vander Vennet 2023-11-30 00:31:26 +01:00
parent 595503cfc3
commit 8f7b731d29

View file

@ -29,16 +29,16 @@ export default class NearbyFeatureSource implements FeatureSource {
this.features = Stores.ListStabilized(this._result)
sources.forEach((source, layer) => {})
sources.forEach((source, layer) => {
this.registerSource(source, layer)
})
}
public registerSource(source: FeatureSource, layerId: string) {
let minzoom = 999
const flayer = this._layerState?.filteredLayers.get(layerId)
if (!flayer) {
return
}
minzoom = Math.min(minzoom, flayer.layerDef.minzoom)
const calcSource = this.createSource(
source.features,
flayer.layerDef.minzoom,