more generic way to not display demolished buildings

This commit is contained in:
Ed Chalstrey 2022-04-21 16:12:45 +01:00
parent 6bfbff7a58
commit 322df6df53

View File

@ -7,16 +7,12 @@ const LAYER_QUERIES = {
SELECT
geometry_id
FROM
buildings
WHERE
latest_demolish_date IS NULL`,
buildings`,
base_night: `
SELECT
geometry_id
FROM
buildings
WHERE
latest_demolish_date IS NULL`,
buildings`,
number_labels:`
SELECT
geometry_id,
@ -196,6 +192,8 @@ function getDataConfig(tileset: string): DataConfig {
JOIN
geometries AS g
ON d.geometry_id = g.geometry_id
WHERE
d.latest_demolish_date IS NULL
) AS data
`;