Merge branch 'master' into develop

This commit is contained in:
Pieter Vander Vennet 2024-08-30 02:24:17 +02:00
commit 3002e95411
98 changed files with 3627 additions and 2966 deletions

View file

@ -7,7 +7,7 @@
if (!htmlElement) {
return
}
const v = value.data
const v = "" + value.data
for (let option of htmlElement.getElementsByTagName("option")) {
if (option.value === v) {
option.selected = true

View file

@ -55,6 +55,9 @@
for (const preset of layer.presets) {
const tags = TagUtils.KVtoProperties(preset.tags ?? [])
if(preset.preciseInput.snapToLayers){
tags["_referencing_ways"] = '["way/-1"]'
}
const markers = layer.mapRendering.map((mr, i) =>
mr

View file

@ -5,6 +5,7 @@
function clearCaches() {
IdbLocalStorage.clearAll()
Utils.download("./service-worker-clear")
window.location.reload()
}
export let msg: string
</script>

View file

@ -28,6 +28,10 @@
}
let configJson: Store<QuestionableTagRenderingConfigJson[]> = value.map((x) => {
if(x === undefined){
console.log("No config found for ",path)
return []
}
if (typeof x === "string") {
return perId[x]
} else {
@ -38,6 +42,7 @@
if (!configs) {
return [{ error: "No configuartions found" }]
}
console.log("Configs are", configs)
return configs.map((config) => {
if (config["builtin"]) {
let override = ""