Adjust likes colour scale and legend
This commit is contained in:
parent
c63f42f921
commit
3cecb62993
@ -222,27 +222,27 @@
|
||||
</Style>
|
||||
<Style name="likes">
|
||||
<Rule>
|
||||
<Filter>[likes] >= 10</Filter>
|
||||
<Filter>[likes] >= 100</Filter>
|
||||
<PolygonSymbolizer fill="#bd0026" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[likes] >= 5 and [likes] < 10</Filter>
|
||||
<Filter>[likes] >= 70 and [likes] < 100</Filter>
|
||||
<PolygonSymbolizer fill="#e31a1c" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[likes] >= 4 and [likes] < 5</Filter>
|
||||
<Filter>[likes] >= 40 and [likes] < 70</Filter>
|
||||
<PolygonSymbolizer fill="#fc4e2a" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[likes] >= 3 and [likes] < 4</Filter>
|
||||
<Filter>[likes] >= 15 and [likes] < 40</Filter>
|
||||
<PolygonSymbolizer fill="#fd8d3c" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[likes] >= 2 and [likes] < 3</Filter>
|
||||
<Filter>[likes] >= 5 and [likes] < 15</Filter>
|
||||
<PolygonSymbolizer fill="#feb24c" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[likes] < 2</Filter>
|
||||
<Filter>[likes] < 5</Filter>
|
||||
<PolygonSymbolizer fill="#fed976" />
|
||||
</Rule>
|
||||
</Style>
|
||||
|
@ -102,12 +102,12 @@ const LEGEND_CONFIG = {
|
||||
like: {
|
||||
title: 'Like Me',
|
||||
elements: [
|
||||
{ color: '#bd0026', text: '👍👍👍 ≥10' },
|
||||
{ color: '#e31a1c', text: '👍👍 5–10' },
|
||||
{ color: '#fc4e2a', text: '👍 4' },
|
||||
{ color: '#fd8d3c', text: '👍 3' },
|
||||
{ color: '#feb24c', text: '👍 2' },
|
||||
{ color: '#fed976', text: '👍 1' },
|
||||
{ color: '#bd0026', text: '👍👍👍 ≥100' },
|
||||
{ color: '#e31a1c', text: '👍👍 70–100' },
|
||||
{ color: '#fc4e2a', text: '👍 40-69' },
|
||||
{ color: '#fd8d3c', text: '👍 15-39' },
|
||||
{ color: '#feb24c', text: '👍 5-14' },
|
||||
{ color: '#fed976', text: '👍 1-4' },
|
||||
]
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user