add new map style for domestic status
This commit is contained in:
parent
df07a3bf1d
commit
cee0c16edf
@ -599,6 +599,30 @@
|
||||
<LineSymbolizer stroke="#888" stroke-width="2.0"/>
|
||||
</Rule>
|
||||
</Style>
|
||||
<Style name="is_domestic">
|
||||
<Rule>
|
||||
<Filter>[is_domestic] = "yes"</Filter>
|
||||
<PolygonSymbolizer fill="#f7ec25" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[is_domestic] = "mixed"</Filter>
|
||||
<PolygonSymbolizer fill="#fc9b2a" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[is_domestic] = "no"</Filter>
|
||||
<PolygonSymbolizer fill="#ff2121" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<MaxScaleDenominator>17061</MaxScaleDenominator>
|
||||
<MinScaleDenominator>4264</MinScaleDenominator>
|
||||
<LineSymbolizer stroke="#888" stroke-width="1.0"/>
|
||||
</Rule>
|
||||
<Rule>
|
||||
<MaxScaleDenominator>4264</MaxScaleDenominator>
|
||||
<MinScaleDenominator>0</MinScaleDenominator>
|
||||
<LineSymbolizer stroke="#888" stroke-width="3.0"/>
|
||||
</Rule>
|
||||
</Style>
|
||||
<Style name="likes">
|
||||
<Rule>
|
||||
<Filter>[likes] >= 100</Filter>
|
||||
|
@ -108,6 +108,17 @@ export const categoryMapsConfig: {[key in Category]: CategoryMapDefinition[]} =
|
||||
},
|
||||
}],
|
||||
[Category.Community]: [
|
||||
{
|
||||
mapStyle: 'is_domestic',
|
||||
legend: {
|
||||
title: 'Is domestic building?',
|
||||
elements: [
|
||||
{ color: '#f7ec25', text: 'Domestic' },
|
||||
{ color: '#fc9b2a', text: 'Mixed' },
|
||||
{ color: '#ff2121', text: 'Non-domestic' },
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
mapStyle: 'likes',
|
||||
legend: {
|
||||
@ -278,7 +289,19 @@ export const categoryMapsConfig: {[key in Category]: CategoryMapDefinition[]} =
|
||||
]
|
||||
},
|
||||
}],
|
||||
[Category.LandUse]: [{
|
||||
[Category.LandUse]: [
|
||||
{
|
||||
mapStyle: 'is_domestic',
|
||||
legend: {
|
||||
title: 'Is domestic building?',
|
||||
elements: [
|
||||
{ color: '#f7ec25', text: 'Domestic' },
|
||||
{ color: '#fc9b2a', text: 'Mixed' },
|
||||
{ color: '#ff2121', text: 'Non-domestic' },
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
mapStyle: 'landuse',
|
||||
legend: {
|
||||
title: 'Land Use',
|
||||
@ -300,7 +323,8 @@ export const categoryMapsConfig: {[key in Category]: CategoryMapDefinition[]} =
|
||||
{ color: '#6c6f8e', text: 'Unclassified, presumed non-residential' }
|
||||
]
|
||||
},
|
||||
}],
|
||||
}
|
||||
],
|
||||
[Category.Streetscape]: [{
|
||||
mapStyle: undefined,
|
||||
legend: {
|
||||
|
@ -7,6 +7,7 @@ export type BuildingMapTileset = 'date_year' |
|
||||
'size_height' |
|
||||
'construction_core_material' |
|
||||
'location' |
|
||||
'is_domestic' |
|
||||
'likes' |
|
||||
'community_local_significance_total' |
|
||||
'community_expected_planning_application_total' |
|
||||
|
@ -109,6 +109,14 @@ const LAYER_QUERIES = {
|
||||
) AS team_info_count
|
||||
FROM
|
||||
buildings`,
|
||||
is_domestic: `
|
||||
SELECT
|
||||
geometry_id,
|
||||
is_domestic
|
||||
FROM
|
||||
buildings
|
||||
WHERE
|
||||
is_domestic IS NOT NULL`,
|
||||
likes: `
|
||||
SELECT
|
||||
geometry_id,
|
||||
|
Loading…
Reference in New Issue
Block a user