possibilite de selectionner un resultat quand il n'y a rien dans le champ adresse
This commit is contained in:
parent
35aceeb5e6
commit
9e858ae5ad
1 changed files with 7 additions and 5 deletions
|
@ -122,12 +122,14 @@ const adresseOptions = {
|
|||
};
|
||||
},
|
||||
processResults(data) {
|
||||
let r = data.features.map(({ properties: { label }, geometry }) => ({
|
||||
id: label,
|
||||
text: label,
|
||||
geometry
|
||||
}));
|
||||
r.unshift({ id: data.query, text: data.query });
|
||||
return {
|
||||
results: data.features.map(({ properties: { label }, geometry }) => ({
|
||||
id: label,
|
||||
text: label,
|
||||
geometry
|
||||
}))
|
||||
results: r
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue