Merge pull request #479 from mz8i/feature/189-increase-likes
Feature 189: Adjust likes colour scale and legend
This commit is contained in:
commit
bc0cd575e0
@ -222,28 +222,32 @@
|
|||||||
</Style>
|
</Style>
|
||||||
<Style name="likes">
|
<Style name="likes">
|
||||||
<Rule>
|
<Rule>
|
||||||
<Filter>[likes] >= 10</Filter>
|
<Filter>[likes] >= 100</Filter>
|
||||||
<PolygonSymbolizer fill="#bd0026" />
|
<PolygonSymbolizer fill="#bd0026" />
|
||||||
</Rule>
|
</Rule>
|
||||||
<Rule>
|
<Rule>
|
||||||
<Filter>[likes] >= 5 and [likes] < 10</Filter>
|
<Filter>[likes] >= 50 and [likes] < 100</Filter>
|
||||||
<PolygonSymbolizer fill="#e31a1c" />
|
<PolygonSymbolizer fill="#e31a1c" />
|
||||||
</Rule>
|
</Rule>
|
||||||
<Rule>
|
<Rule>
|
||||||
<Filter>[likes] >= 4 and [likes] < 5</Filter>
|
<Filter>[likes] >= 20 and [likes] < 50</Filter>
|
||||||
<PolygonSymbolizer fill="#fc4e2a" />
|
<PolygonSymbolizer fill="#fc4e2a" />
|
||||||
</Rule>
|
</Rule>
|
||||||
<Rule>
|
<Rule>
|
||||||
<Filter>[likes] >= 3 and [likes] < 4</Filter>
|
<Filter>[likes] >= 10 and [likes] < 20</Filter>
|
||||||
<PolygonSymbolizer fill="#fd8d3c" />
|
<PolygonSymbolizer fill="#fd8d3c" />
|
||||||
</Rule>
|
</Rule>
|
||||||
<Rule>
|
<Rule>
|
||||||
<Filter>[likes] >= 2 and [likes] < 3</Filter>
|
<Filter>[likes] >= 3 and [likes] < 10</Filter>
|
||||||
<PolygonSymbolizer fill="#feb24c" />
|
<PolygonSymbolizer fill="#feb24c" />
|
||||||
</Rule>
|
</Rule>
|
||||||
<Rule>
|
<Rule>
|
||||||
<Filter>[likes] < 2</Filter>
|
<Filter>[likes] = 2</Filter>
|
||||||
<PolygonSymbolizer fill="#fed976" />
|
<PolygonSymbolizer fill="#fed976" />
|
||||||
</Rule>
|
</Rule>
|
||||||
|
<Rule>
|
||||||
|
<Filter>[likes] = 1</Filter>
|
||||||
|
<PolygonSymbolizer fill="#ffe8a9" />
|
||||||
|
</Rule>
|
||||||
</Style>
|
</Style>
|
||||||
</Map>
|
</Map>
|
||||||
|
@ -102,12 +102,13 @@ const LEGEND_CONFIG = {
|
|||||||
like: {
|
like: {
|
||||||
title: 'Like Me',
|
title: 'Like Me',
|
||||||
elements: [
|
elements: [
|
||||||
{ color: '#bd0026', text: '👍👍👍 ≥10' },
|
{ color: '#bd0026', text: '👍👍👍👍 100+' },
|
||||||
{ color: '#e31a1c', text: '👍👍 5–10' },
|
{ color: '#e31a1c', text: '👍👍👍 50–99' },
|
||||||
{ color: '#fc4e2a', text: '👍 4' },
|
{ color: '#fc4e2a', text: '👍👍 20–49' },
|
||||||
{ color: '#fd8d3c', text: '👍 3' },
|
{ color: '#fd8d3c', text: '👍👍 10–19' },
|
||||||
{ color: '#feb24c', text: '👍 2' },
|
{ color: '#feb24c', text: '👍 3–9' },
|
||||||
{ color: '#fed976', text: '👍 1' },
|
{ color: '#fed976', text: '👍 2' },
|
||||||
|
{ color: '#ffe8a9', text: '👍 1'}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user