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"/>
|
<LineSymbolizer stroke="#888" stroke-width="2.0"/>
|
||||||
</Rule>
|
</Rule>
|
||||||
</Style>
|
</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">
|
<Style name="likes">
|
||||||
<Rule>
|
<Rule>
|
||||||
<Filter>[likes] >= 100</Filter>
|
<Filter>[likes] >= 100</Filter>
|
||||||
|
@ -108,6 +108,17 @@ export const categoryMapsConfig: {[key in Category]: CategoryMapDefinition[]} =
|
|||||||
},
|
},
|
||||||
}],
|
}],
|
||||||
[Category.Community]: [
|
[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',
|
mapStyle: 'likes',
|
||||||
legend: {
|
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',
|
mapStyle: 'landuse',
|
||||||
legend: {
|
legend: {
|
||||||
title: 'Land Use',
|
title: 'Land Use',
|
||||||
@ -300,7 +323,8 @@ export const categoryMapsConfig: {[key in Category]: CategoryMapDefinition[]} =
|
|||||||
{ color: '#6c6f8e', text: 'Unclassified, presumed non-residential' }
|
{ color: '#6c6f8e', text: 'Unclassified, presumed non-residential' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
}],
|
}
|
||||||
|
],
|
||||||
[Category.Streetscape]: [{
|
[Category.Streetscape]: [{
|
||||||
mapStyle: undefined,
|
mapStyle: undefined,
|
||||||
legend: {
|
legend: {
|
||||||
|
@ -7,6 +7,7 @@ export type BuildingMapTileset = 'date_year' |
|
|||||||
'size_height' |
|
'size_height' |
|
||||||
'construction_core_material' |
|
'construction_core_material' |
|
||||||
'location' |
|
'location' |
|
||||||
|
'is_domestic' |
|
||||||
'likes' |
|
'likes' |
|
||||||
'community_local_significance_total' |
|
'community_local_significance_total' |
|
||||||
'community_expected_planning_application_total' |
|
'community_expected_planning_application_total' |
|
||||||
|
@ -109,6 +109,14 @@ const LAYER_QUERIES = {
|
|||||||
) AS team_info_count
|
) AS team_info_count
|
||||||
FROM
|
FROM
|
||||||
buildings`,
|
buildings`,
|
||||||
|
is_domestic: `
|
||||||
|
SELECT
|
||||||
|
geometry_id,
|
||||||
|
is_domestic
|
||||||
|
FROM
|
||||||
|
buildings
|
||||||
|
WHERE
|
||||||
|
is_domestic IS NOT NULL`,
|
||||||
likes: `
|
likes: `
|
||||||
SELECT
|
SELECT
|
||||||
geometry_id,
|
geometry_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user