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,29 +289,42 @@ export const categoryMapsConfig: {[key in Category]: CategoryMapDefinition[]} =
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
}],
|
}],
|
||||||
[Category.LandUse]: [{
|
[Category.LandUse]: [
|
||||||
mapStyle: 'landuse',
|
{
|
||||||
legend: {
|
mapStyle: 'is_domestic',
|
||||||
title: 'Land Use',
|
legend: {
|
||||||
elements: [
|
title: 'Is domestic building?',
|
||||||
{ color: '#e5050d', text: 'Mixed Use' },
|
elements: [
|
||||||
{ subtitle: 'Single use:'},
|
{ color: '#f7ec25', text: 'Domestic' },
|
||||||
{ color: '#252aa6', text: 'Residential (unverified)' },
|
{ color: '#fc9b2a', text: 'Mixed' },
|
||||||
{ color: '#7025a6', text: 'Residential (verified)' },
|
{ color: '#ff2121', text: 'Non-domestic' },
|
||||||
{ color: '#ff8c00', text: 'Retail' },
|
]
|
||||||
{ color: '#f5f58f', text: 'Industry & Business' },
|
}
|
||||||
{ color: '#fa667d', text: 'Community Services' },
|
},
|
||||||
{ color: '#ffbfbf', text: 'Recreation & Leisure' },
|
{
|
||||||
{ color: '#b3de69', text: 'Transport' },
|
mapStyle: 'landuse',
|
||||||
{ color: '#cccccc', text: 'Utilities & Infrastructure' },
|
legend: {
|
||||||
{ color: '#898944', text: 'Defence' },
|
title: 'Land Use',
|
||||||
{ color: '#73ccd1', text: 'Agriculture' },
|
elements: [
|
||||||
{ color: '#45cce3', text: 'Minerals' },
|
{ color: '#e5050d', text: 'Mixed Use' },
|
||||||
{ color: '#ffffff', text: 'Vacant & Derelict' },
|
{ subtitle: 'Single use:'},
|
||||||
{ color: '#6c6f8e', text: 'Unclassified, presumed non-residential' }
|
{ color: '#252aa6', text: 'Residential (unverified)' },
|
||||||
]
|
{ color: '#7025a6', text: 'Residential (verified)' },
|
||||||
},
|
{ color: '#ff8c00', text: 'Retail' },
|
||||||
}],
|
{ color: '#f5f58f', text: 'Industry & Business' },
|
||||||
|
{ color: '#fa667d', text: 'Community Services' },
|
||||||
|
{ color: '#ffbfbf', text: 'Recreation & Leisure' },
|
||||||
|
{ color: '#b3de69', text: 'Transport' },
|
||||||
|
{ color: '#cccccc', text: 'Utilities & Infrastructure' },
|
||||||
|
{ color: '#898944', text: 'Defence' },
|
||||||
|
{ color: '#73ccd1', text: 'Agriculture' },
|
||||||
|
{ color: '#45cce3', text: 'Minerals' },
|
||||||
|
{ color: '#ffffff', text: 'Vacant & Derelict' },
|
||||||
|
{ 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