Render outline for no-data on date

This commit is contained in:
Tom Russell 2018-08-02 19:00:05 +01:00
parent 0dcfdeaad6
commit 6402ac6fbe
2 changed files with 5 additions and 2 deletions

View File

@ -130,8 +130,6 @@ app.get('/date_year/:z/:x/:y.png', function(req, res) {
buildings as b
WHERE
g.geometry_id = b.geometry_id
AND
b.building_doc ? 'date_year'
) as outline`
const style_def = ['date_year']
render_tile(bbox, table_def, style_def, function(err, im) {

View File

@ -112,5 +112,10 @@
<PolygonSymbolizer fill="#4c0073" />
<LineSymbolizer stroke="white" stroke-width="0.3" />
</Rule>
<Rule>
<ElseFilter />
<PolygonSymbolizer fill="#00000000" />
<LineSymbolizer stroke="black" stroke-width="0.3" />
</Rule>
</Style>
</Map>