Special colors for hotels/garden buildings

part of #724
This commit is contained in:
Mateusz Konieczny 2022-02-15 19:56:43 +01:00
parent db34ee5b44
commit 3b25d7f36e
2 changed files with 11 additions and 2 deletions

View File

@ -534,9 +534,17 @@
<PolygonSymbolizer fill="#cccccc" /> <PolygonSymbolizer fill="#cccccc" />
</Rule> </Rule>
<Rule> <Rule>
<Filter>[current_landuse_order] = "Residential"</Filter> <Filter>[current_landuse_order] = "Residential" and not ([current_landuse_group] = "Garden buildings") and not ([current_landuse_group] = "Hotels, boarding and guest houses") </Filter>
<PolygonSymbolizer fill="#252aa6" /> <PolygonSymbolizer fill="#252aa6" />
</Rule> </Rule>
<Rule>
<Filter>[current_landuse_order] = "Residential" and [current_landuse_group] = "Hotels, boarding and guest houses"</Filter>
<PolygonSymbolizer fill="#3c4194" />
</Rule>
<Rule>
<Filter>[current_landuse_order] = "Residential" and [current_landuse_group] = "Garden buildings" </Filter>
<PolygonSymbolizer fill="#5b5fbc" />
</Rule>
<Rule> <Rule>
<Filter>[current_landuse_order] = "Community Services"</Filter> <Filter>[current_landuse_order] = "Community Services"</Filter>
<PolygonSymbolizer fill="#73ccd1" /> <PolygonSymbolizer fill="#73ccd1" />

View File

@ -149,7 +149,8 @@ const LAYER_QUERIES = {
landuse: ` landuse: `
SELECT SELECT
geometry_id, geometry_id,
current_landuse_order current_landuse_order,
current_landuse_group[1] as current_landuse_group
FROM FROM
buildings buildings
WHERE WHERE