Show more (and do not remove) seas with increasing zoom level

Fix #275
This commit is contained in:
jirik 2017-11-20 17:23:58 +01:00 committed by Jiri Kozel
parent 9c7a3aeb36
commit d2a81bd1da

View File

@ -40,7 +40,7 @@ RETURNS TABLE(osm_id bigint, geometry geometry, name text, name_en text, name_de
FROM osm_marine_point FROM osm_marine_point
WHERE geometry && bbox AND ( WHERE geometry && bbox AND (
place = 'ocean' place = 'ocean'
OR (zoom_level >= 1 AND zoom_level <= "rank" AND "rank" IS NOT NULL) OR (zoom_level >= "rank" AND "rank" IS NOT NULL)
OR (zoom_level >= 8) OR (zoom_level >= 8)
); );
$$ LANGUAGE SQL IMMUTABLE; $$ LANGUAGE SQL IMMUTABLE;