diff --git a/app/map_styles/polygon.xml b/app/map_styles/polygon.xml index d122482d..1debdc17 100644 --- a/app/map_styles/polygon.xml +++ b/app/map_styles/polygon.xml @@ -507,4 +507,34 @@ + diff --git a/app/src/tiles/dataDefinition.ts b/app/src/tiles/dataDefinition.ts index fa3913b6..45227491 100644 --- a/app/src/tiles/dataDefinition.ts +++ b/app/src/tiles/dataDefinition.ts @@ -133,6 +133,13 @@ const LAYER_QUERIES = { buildings WHERE current_landuse_order IS NOT NULL`, + dynamics_demolished_count: ` + SELECT + geometry_id, + jsonb_array_length(demolished_buildings) as demolished_buildings_count + FROM + buildings + WHERE jsonb_array_length(demolished_buildings) > 0`, }; const GEOMETRY_FIELD = 'geometry_geom';