forked from MapComplete/MapComplete
Optimizing trees theme and clustering
This commit is contained in:
parent
5ac035be20
commit
8fca373437
11 changed files with 125 additions and 67 deletions
5
Utils.ts
5
Utils.ts
|
@ -168,7 +168,12 @@ export class Utils {
|
|||
if (!tags.hasOwnProperty(key)) {
|
||||
continue
|
||||
}
|
||||
try{
|
||||
txt = txt.replace(new RegExp("{" + key + "}", "g"), tags[key] ?? "")
|
||||
}catch(e){
|
||||
console.error("WEIRD" , e)
|
||||
throw e
|
||||
}
|
||||
}
|
||||
txt = txt.replace(new RegExp('{.*}', "g"), "")
|
||||
return txt;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue