Merge pull request #782 from colouring-cities/feature/special-colors-for-special-residential

Special colors for hotels/garden buildings
This commit is contained in:
Mateusz Konieczny 2022-02-22 13:40:52 +01:00 committed by GitHub
commit 273936de06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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