From 59a661189e907d1a8f01cb0186ce064dc208ca3a Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Thu, 23 May 2024 13:55:23 +0200 Subject: [PATCH 1/3] Fix #1952 --- src/UI/Popup/TagApplyButton.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UI/Popup/TagApplyButton.ts b/src/UI/Popup/TagApplyButton.ts index f831f8c9e1..c42d0debdd 100644 --- a/src/UI/Popup/TagApplyButton.ts +++ b/src/UI/Popup/TagApplyButton.ts @@ -193,7 +193,7 @@ export default class TagApplyButton implements AutoAction, SpecialVisualization } return el }) - ).SetClass("subtle") + ).SetClass("subtle break-all") const applied = new UIEventSource( tags?.data?.["mr_taskStatus"] !== undefined && tags?.data?.["mr_taskStatus"] !== "Created" From a505fe1ca2dc0c4231ef7f03e3f1100d66a11afc Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Thu, 23 May 2024 14:32:53 +0200 Subject: [PATCH 2/3] Fix #1959 --- src/Models/ThemeConfig/LayoutConfig.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Models/ThemeConfig/LayoutConfig.ts b/src/Models/ThemeConfig/LayoutConfig.ts index 02672bbf10..50a9818d7a 100644 --- a/src/Models/ThemeConfig/LayoutConfig.ts +++ b/src/Models/ThemeConfig/LayoutConfig.ts @@ -315,7 +315,9 @@ export default class LayoutConfig implements LayoutInformation { continue } if (layer.source.osmTags.matchesProperties(tags)) { - return layer + if(!layer.isShown || layer.isShown.matchesProperties(tags)){// https://github.com/pietervdvn/MapComplete/issues/1959 + return layer + } } } console.log("Fallthrough", this, tags) From ad5b5128c03d2f29984f0b0a4ad46244b8bf28de Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Fri, 24 May 2024 14:24:40 +0200 Subject: [PATCH 3/3] Hide some objects with css --- assets/themes/velopark/velopark.css | 3 +++ assets/themes/velopark/velopark.json | 9 +++------ 2 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 assets/themes/velopark/velopark.css diff --git a/assets/themes/velopark/velopark.css b/assets/themes/velopark/velopark.css new file mode 100644 index 0000000000..f386afc2e1 --- /dev/null +++ b/assets/themes/velopark/velopark.css @@ -0,0 +1,3 @@ +.tr-qr_code , .tr-favourite_status { + display: none; +} diff --git a/assets/themes/velopark/velopark.json b/assets/themes/velopark/velopark.json index c0a07ebcc4..270e5e4ca1 100644 --- a/assets/themes/velopark/velopark.json +++ b/assets/themes/velopark/velopark.json @@ -4,6 +4,7 @@ "en": "Velopark to OpenStreetMap synchronisation tool", "nl": "Velopark naar OpenStreetMap sync tool" }, + "customCss": "./assets/themes/velopark/velopark.css", "mustHaveLanguage": [ "nl", "en" @@ -309,9 +310,7 @@ ], "hideTagRenderingsWithLabels": [ "images", - "leftover-questions", - "qr_code", - "favourite_status" + "leftover-questions" ], "override": { "id": "bike_parking_with_velopark_ref", @@ -395,9 +394,7 @@ ], "hideTagRenderingsWithLabels": [ "images", - "leftover-questions", - "qr_code", - "favourite_status" + "leftover-questions" ], "override": { "doCount": false,