change data definiton for tile mapstyle of 'location' and 'team'
using Subquery/ nested SQL Qquery to only load those buildings, having at least a few collected data. The benefit is, that the mapstyle is not different for nodata buildings comparing different data categories. Now, if you compare nodata buildings in 'team' or 'location' with others, the stroke width is larger than the normal map style... loading only builidings with data avoids this problem of different map styles. It is a better and more performant solution than changing it in polygon.xml
see also c80f243c0d
This commit is contained in:
parent
d1d1e00cc2
commit
4dcd3de93a
@ -71,6 +71,8 @@ const LAYER_QUERIES = {
|
||||
WHERE
|
||||
construction_core_material IS NOT NULL`,
|
||||
location: `
|
||||
SELECT blds_with_data.*
|
||||
FROM (
|
||||
SELECT
|
||||
geometry_id,
|
||||
(
|
||||
@ -86,8 +88,12 @@ const LAYER_QUERIES = {
|
||||
case when ref_osm_id IS NULL then 0 else 1 end
|
||||
) AS location_info_count
|
||||
FROM
|
||||
buildings`,
|
||||
buildings
|
||||
) AS blds_with_data
|
||||
WHERE blds_with_data.location_info_count > 0`,
|
||||
team: `
|
||||
SELECT blds_with_data.*
|
||||
FROM (
|
||||
SELECT
|
||||
geometry_id,
|
||||
(
|
||||
@ -108,7 +114,9 @@ const LAYER_QUERIES = {
|
||||
case when date_year IS NULL then 0 else 1 end
|
||||
) AS team_info_count
|
||||
FROM
|
||||
buildings`,
|
||||
buildings
|
||||
) AS blds_with_data
|
||||
WHERE blds_with_data.team_info_count > 0`,
|
||||
is_domestic: `
|
||||
SELECT
|
||||
geometry_id,
|
||||
|
Loading…
Reference in New Issue
Block a user