From c7652b16c11cacbe380e7763322ae0ed8d5492a3 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Tue, 11 Oct 2022 01:54:01 +0200 Subject: [PATCH] Fix BAG-layer --- assets/themes/bag_import/bag.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/assets/themes/bag_import/bag.json b/assets/themes/bag_import/bag.json index 331163286..d8b026156 100644 --- a/assets/themes/bag_import/bag.json +++ b/assets/themes/bag_import/bag.json @@ -201,7 +201,7 @@ "if": { "or": [ "_bag_obj:building=", - "_bag_obj:ref:bag" + "_bag_obj:ref:bag=" ] }, "then": { @@ -213,7 +213,12 @@ "then": "{conflate_button(osm:buildings, building=$_bag_obj:building; ref:bag=$_bag_obj:ref:bag; source=BAG; source:date=$_bag_obj:source:date; start_date=$_bag_obj:start_date, Replace the geometry in OpenStreetMap, , _osm_obj:id)}" }, { - "if": "_bag_obj:in_construction=true", + "if": { + "and":[ + "_bag_obj:building~*", + "_bag_obj:ref:bag~*", + "_bag_obj:in_construction=true"] + }, "then": "{import_way_button(osm:buildings, building=$_bag_obj:building; construction=$_bag_obj:construction; ref:bag=$_bag_obj:ref:bag; source=BAG; source:date=$_bag_obj:source:date; start_date=$_bag_obj:start_date, Upload this building to OpenStreetMap)}" } ]