forked from MapComplete/MapComplete
Move hotel to 'tourism_accomodation', include hostels, fix #2070
This commit is contained in:
parent
fde4e24abe
commit
8277bd3a1c
34 changed files with 647 additions and 754 deletions
|
@ -108,6 +108,9 @@ export default class DetermineLayout {
|
|||
).data
|
||||
const id = layoutId?.toLowerCase()
|
||||
const layouts = AllKnownLayouts.allKnownLayouts
|
||||
if(layouts.size() == 0){
|
||||
throw "Build failed or running, no layouts are known at all"
|
||||
}
|
||||
if (layouts.getConfig(id) === undefined) {
|
||||
const alternatives = Utils.sortedByLevenshteinDistance(id, Array.from(layouts.keys()), i => i).slice(0, 3)
|
||||
const msg = (`No builtin map theme with name ${layoutId} exists. Perhaps you meant one of ${alternatives.join(", ")}`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue