Fix: add links and overpass link to cafe_pub

This commit is contained in:
Pieter Vander Vennet 2023-11-13 01:39:32 +01:00
parent 7de0af15f1
commit 41b6eea430
165 changed files with 2336 additions and 11345 deletions

View file

@ -524,6 +524,8 @@ export default class LayerConfig extends WithContextLoader {
overpassLink = new Link(
"Execute on overpass",
Overpass.AsOverpassTurboLink(<TagsFilter>new And(neededTags).optimize())
.replaceAll("(", "%28")
.replaceAll(")", "%29")
)
} catch (e) {
console.error("Could not generate overpasslink for " + this.id)
@ -537,7 +539,7 @@ export default class LayerConfig extends WithContextLoader {
}
const tagsDescription = []
if (this.source === null) {
if (this.source !== null) {
tagsDescription.push(
new Title("Basic tags for this layer", 2),
"Elements must have the all of following tags to be shown on this layer:",