This is an automated email from the ASF dual-hosted git repository.

bchapuis pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-baremaps.git


The following commit(s) were added to refs/heads/main by this push:
     new efb0a0ec Remove name translations from points at low zoom levels (#676)
efb0a0ec is described below

commit efb0a0ec1a4015f03eaaea558722be7232042ad5
Author: Bertil Chapuis <[email protected]>
AuthorDate: Sat May 27 14:35:29 2023 +0200

    Remove name translations from points at low zoom levels (#676)
    
    * Display icons, country names, and boundaries on the basemap
    
    * 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 != 
'{}'"
         }

Reply via email to