From a505fe1ca2dc0c4231ef7f03e3f1100d66a11afc Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Thu, 23 May 2024 14:32:53 +0200 Subject: [PATCH] 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 02672bbf1..50a9818d7 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)