as discussed with paul: This makes the region lookup smooth.

This commit is contained in:
gluap 2023-03-26 16:46:23 +02:00
parent 9882b2041f
commit df0466c6f1
No known key found for this signature in database

View file

@ -21,7 +21,7 @@ RETURNS TABLE(
zoom_level >= 4 AND zoom_level >= 4 AND
zoom_level <= 12 AND zoom_level <= 12 AND
region.admin_level = 6 AND region.admin_level = 6 AND
ST_Transform(region.geometry, 3857) && bbox region.geometry && bbox
GROUP BY region.relation_id, region.name, region.geometry, region.admin_level GROUP BY region.relation_id, region.name, region.geometry, region.admin_level
$$ LANGUAGE SQL IMMUTABLE; $$ LANGUAGE SQL IMMUTABLE;