From 3b25d7f36ea4aab324c5f7ccf0b110c90d344abd Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny Date: Tue, 15 Feb 2022 19:56:43 +0100 Subject: [PATCH] Special colors for hotels/garden buildings part of #724 --- app/map_styles/polygon.xml | 10 +++++++++- app/src/tiles/dataDefinition.ts | 3 ++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/app/map_styles/polygon.xml b/app/map_styles/polygon.xml index 2a3fa09d..fbe123e8 100644 --- a/app/map_styles/polygon.xml +++ b/app/map_styles/polygon.xml @@ -534,9 +534,17 @@ - [current_landuse_order] = "Residential" + [current_landuse_order] = "Residential" and not ([current_landuse_group] = "Garden buildings") and not ([current_landuse_group] = "Hotels, boarding and guest houses") + + [current_landuse_order] = "Residential" and [current_landuse_group] = "Hotels, boarding and guest houses" + + + + [current_landuse_order] = "Residential" and [current_landuse_group] = "Garden buildings" + + [current_landuse_order] = "Community Services" diff --git a/app/src/tiles/dataDefinition.ts b/app/src/tiles/dataDefinition.ts index 137bae96..eb30fbde 100644 --- a/app/src/tiles/dataDefinition.ts +++ b/app/src/tiles/dataDefinition.ts @@ -149,7 +149,8 @@ const LAYER_QUERIES = { landuse: ` SELECT geometry_id, - current_landuse_order + current_landuse_order, + current_landuse_group[1] as current_landuse_group FROM buildings WHERE