From f6bcd0eee9003d322ee88ea004e0f6e55daf41ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Kr=C3=B6g?= Date: Mon, 31 Aug 2026 16:40:37 +0200 Subject: [PATCH] Fix residential area filtering The intent was to display all residential areas at zoom level 8 but features that SetMinZoomByArea puts into zoom level 9 were not displayed because of the wrong constant used for the comparison. An area slightly larger than ZRES7^2 results in zoom level 8. Only area>ZRES6^2 results in a zoom level smaller than 8. Co-Authored-By: Claude Opus 5 (1M context) --- resources/process-openmaptiles.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/process-openmaptiles.lua b/resources/process-openmaptiles.lua index d6d82ea7..1c53ea09 100644 --- a/resources/process-openmaptiles.lua +++ b/resources/process-openmaptiles.lua @@ -742,8 +742,8 @@ function way_function() Layer("landuse", true) Attribute("class", l) if l=="residential" then - if Area()ZRES6^2 then SetMinZoomByArea() + else MinZoom(8) end else MinZoom(11) end write_name = true end