diff --git a/app/map_styles/polygon.xml b/app/map_styles/polygon.xml index 41987251..75e9549d 100644 --- a/app/map_styles/polygon.xml +++ b/app/map_styles/polygon.xml @@ -42,23 +42,23 @@ diff --git a/app/src/frontend/legend.js b/app/src/frontend/legend.js index 9881c488..88ad7450 100644 --- a/app/src/frontend/legend.js +++ b/app/src/frontend/legend.js @@ -6,12 +6,13 @@ import './legend.css'; const LEGEND_CONFIG = { location: { title: "Location", + description: "% data collected", elements: [ - { color: '#f0f9e8', text: '>5' }, - { color: '#bae4bc', text: '4' }, - { color: '#7bccc4', text: '3' }, - { color: '#43a2ca', text: '2' }, - { color: '#0868ac', text: '1' } + { color: '#0868ac', text: '≥80%' }, + { color: '#43a2ca', text: '60–80%' }, + { color: '#7bccc4', text: '40–60%' }, + { color: '#bae4bc', text: '20–40%' }, + { color: '#f0f9e8', text: '<20%' } ] }, age: { diff --git a/app/src/tileserver.js b/app/src/tileserver.js index dffbb7ad..6265c9d0 100644 --- a/app/src/tileserver.js +++ b/app/src/tileserver.js @@ -144,7 +144,9 @@ router.get('/location/:z/:x/:y.png', function(req, res) { case when b.location_town is null then 0 else 1 end + case when b.location_postcode is null then 0 else 1 end + case when b.location_latitude is null then 0 else 1 end + - case when b.location_longitude is null then 0 else 1 end + case when b.location_longitude is null then 0 else 1 end + + case when b.ref_toid is null then 0 else 1 end + + case when b.ref_osm_id is null then 0 else 1 end ) as location_info_count, g.geometry_geom FROM