This is an automated email from the ASF dual-hosted git repository. bchapuis pushed a commit to branch 675-name-translation in repository https://gitbox.apache.org/repos/asf/incubator-baremaps.git
commit 69c4dc2223717fbcee3bcc8d4de736eeac108328 Author: Bertil Chapuis <[email protected]> AuthorDate: Sat May 27 14:34:43 2023 +0200 Remove name translations from points at low zoom levels --- basemap/layers/point/tileset.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/basemap/layers/point/tileset.js b/basemap/layers/point/tileset.js index 68d665eb..6c44cb74 100644 --- a/basemap/layers/point/tileset.js +++ b/basemap/layers/point/tileset.js @@ -15,10 +15,15 @@ export default { { "minzoom": 1, "maxzoom": 4, - "sql": "SELECT id, tags, geom FROM osm_point_z$zoom WHERE tags != '{}' AND (tags ->> 'place' = 'country')" + "sql": "SELECT id, jsonb_build_object('name', tags -> 'name', 'population', tags -> 'population', 'place', tags -> 'place') as tags, geom FROM osm_point_z$zoom WHERE tags != '{}' AND (tags ->> 'place' = 'country')" }, { "minzoom": 4, + "maxzoom": 8, + "sql": "SELECT id, jsonb_build_object('name', tags -> 'name', 'population', tags -> 'population', 'place', tags -> 'place') as tags, geom FROM osm_point_z$zoom WHERE tags != '{}'" + }, + { + "minzoom": 8, "maxzoom": 20, "sql": "SELECT id, tags, geom FROM osm_point_z$zoom WHERE tags != '{}'" }
