Walking node theme + other fixes

This commit is contained in:
Robin van der Linde 2023-10-19 12:51:44 +02:00
parent e060bd3288
commit b50e54e3e4
Signed by untrusted user: Robin-van-der-Linde
GPG key ID: 53956B3252478F0D
18 changed files with 599 additions and 86 deletions

View file

@ -229,7 +229,11 @@ export default class LayerConfig extends WithContextLoader {
maxSnapDistance: undefined,
}
if (pr["preciseInput"] !== undefined) {
throw "Layer " + this.id + " still uses the old 'preciseInput'-field"
throw (
"Layer " +
this.id +
" still uses the old 'preciseInput'-field. For snapping to layers, use 'snapToLayer' instead"
)
}
if (pr.snapToLayer !== undefined) {
let snapToLayers: string[]
@ -520,7 +524,7 @@ export default class LayerConfig extends WithContextLoader {
neededTags = this.source.osmTags["and"]
}
let tableRows = Utils.NoNull(
const tableRows = Utils.NoNull(
this.tagRenderings
.map((tr) => tr.FreeformValues())
.map((values) => {