forked from MapComplete/MapComplete
Improve coordiante search formats
This commit is contained in:
parent
02ad1a07a4
commit
3ac2f96868
2 changed files with 25 additions and 6 deletions
|
@ -75,6 +75,9 @@ export default class MoreScreen {
|
|||
if (layout.id === "personal") {
|
||||
return false
|
||||
}
|
||||
if(Utils.simplifyStringForSearch(layout.id) === Utils.simplifyStringForSearch(search)){
|
||||
return true
|
||||
}
|
||||
const entitiesToSearch = [layout.shortDescription, layout.title, ...(layout.keywords ?? [])]
|
||||
for (const entity of entitiesToSearch) {
|
||||
if (entity === undefined) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue