Search: hide all features when one is selected

This commit is contained in:
Pieter Vander Vennet 2024-08-23 02:38:02 +02:00
parent 64c392e2a3
commit 7e453b48ed

View file

@ -7,7 +7,10 @@ export default class GeocodingFeatureSource implements FeatureSource {
public features: Store<Feature<Geometry, Record<string, string>>[]>
constructor(provider: Store<GeoCodeResult[]>) {
this.features = provider.mapD(geocoded => {
this.features = provider.map(geocoded => {
if(geocoded === undefined){
return []
}
const features: Feature[] = []
for (const gc of geocoded) {