forked from MapComplete/MapComplete
Search: hide all features when one is selected
This commit is contained in:
parent
64c392e2a3
commit
7e453b48ed
1 changed files with 4 additions and 1 deletions
|
@ -7,7 +7,10 @@ export default class GeocodingFeatureSource implements FeatureSource {
|
||||||
public features: Store<Feature<Geometry, Record<string, string>>[]>
|
public features: Store<Feature<Geometry, Record<string, string>>[]>
|
||||||
|
|
||||||
constructor(provider: Store<GeoCodeResult[]>) {
|
constructor(provider: Store<GeoCodeResult[]>) {
|
||||||
this.features = provider.mapD(geocoded => {
|
this.features = provider.map(geocoded => {
|
||||||
|
if(geocoded === undefined){
|
||||||
|
return []
|
||||||
|
}
|
||||||
const features: Feature[] = []
|
const features: Feature[] = []
|
||||||
|
|
||||||
for (const gc of geocoded) {
|
for (const gc of geocoded) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue