Test yellow-red colour for likes
This commit is contained in:
parent
f8e907f86d
commit
bc1661dc76
@ -170,7 +170,40 @@
|
||||
</Style>
|
||||
<Style name="likes">
|
||||
<Rule>
|
||||
<PolygonSymbolizer fill="#f03b20" />
|
||||
<Filter>[likes] >= 9</Filter>
|
||||
<PolygonSymbolizer fill="#800026" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[likes] >= 8 and [likes] < 9</Filter>
|
||||
<PolygonSymbolizer fill="#bd0026" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[likes] >= 7 and [likes] < 8</Filter>
|
||||
<PolygonSymbolizer fill="#e31a1c" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[likes] >= 6 and [likes] < 7</Filter>
|
||||
<PolygonSymbolizer fill="#fc4e2a" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[likes] >= 5 and [likes] < 6</Filter>
|
||||
<PolygonSymbolizer fill="#fd8d3c" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[likes] >= 4 and [likes] < 5</Filter>
|
||||
<PolygonSymbolizer fill="#feb24c" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[likes] >= 3 and [likes] < 4</Filter>
|
||||
<PolygonSymbolizer fill="#fed976" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[likes] >= 2 and [likes] < 3</Filter>
|
||||
<PolygonSymbolizer fill="#ffeda0" />
|
||||
</Rule>
|
||||
<Rule>
|
||||
<Filter>[likes] < 2</Filter>
|
||||
<PolygonSymbolizer fill="#ffffcc" />
|
||||
</Rule>
|
||||
</Style>
|
||||
</Map>
|
||||
|
@ -168,7 +168,8 @@ router.get('/likes/:z/:x/:y.png', function(req, res) {
|
||||
const bbox = get_bbox(req.params)
|
||||
const table_def = `(
|
||||
SELECT
|
||||
g.geometry_geom
|
||||
g.geometry_geom,
|
||||
b.likes_total as likes
|
||||
FROM
|
||||
geometries as g,
|
||||
buildings as b
|
||||
|
Loading…
Reference in New Issue
Block a user