test team colour scale (but using location vals for now)

This commit is contained in:
Ed Chalstrey 2022-06-10 14:04:46 +01:00
parent 3ef764dc75
commit 691b68e128
2 changed files with 42 additions and 2 deletions

View File

@ -79,6 +79,39 @@
<LineSymbolizer stroke="#888" stroke-width="3.0"/>
</Rule>
</Style>
<Style name="team">
<Rule>
<Filter>[location_info_count] &gt;= 8</Filter>
<PolygonSymbolizer fill="#994d00" />
</Rule>
<Rule>
<Filter>[location_info_count] &gt;= 6 and [location_info_count] &lt; 8</Filter>
<PolygonSymbolizer fill="#e67300" />
</Rule>
<Rule>
<Filter>[location_info_count] &gt;= 4 and [location_info_count] &lt; 6</Filter>
<PolygonSymbolizer fill="#ff9933" />
</Rule>
<Rule>
<Filter>[location_info_count] &gt;= 2 and [location_info_count] &lt; 4</Filter>
<PolygonSymbolizer fill="#ffbf80" />
</Rule>
<Rule>
<Filter>[location_info_count] &gt; 0 and [location_info_count] &lt; 2</Filter>
<PolygonSymbolizer fill="#ffe6cc" />
</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="size_storeys">
<Rule>
<Filter>[size_storeys] &gt;= 40</Filter>

View File

@ -64,10 +64,17 @@ export const categoryMapsConfig: {[key in Category]: CategoryMapDefinition[]} =
},
}],
[Category.Team]: [{
mapStyle: undefined,
mapStyle: 'team',
legend: {
title: 'Team',
elements: []
description: '% data collected',
elements: [
{ color: '#994d00', text: '≥80%' },
{ color: '#e67300', text: '6080%' },
{ color: '#ff9933', text: '4060%' },
{ color: '#ffbf80', text: '2040%' },
{ color: '#ffe6cc', text: '<20%' }
]
},
}],
[Category.Construction]: [{