From da03720da0a58bad381ba2e022cbfeba3b78d288 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Kr=C3=B6g?= Date: Mon, 31 Aug 2026 15:23:29 +0200 Subject: [PATCH] Use web mercator area to filter features Co-Authored-By: Claude Opus 5 (1M context) --- resources/process-openmaptiles.lua | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/resources/process-openmaptiles.lua b/resources/process-openmaptiles.lua index d6d82ea7..74892add 100644 --- a/resources/process-openmaptiles.lua +++ b/resources/process-openmaptiles.lua @@ -742,7 +742,7 @@ function way_function() Layer("landuse", true) Attribute("class", l) if l=="residential" then - if Area()ZRES0^2 then MinZoom(1) elseif minzoom <= 2 and area>ZRES1^2 then MinZoom(2) elseif minzoom <= 3 and area>ZRES2^2 then MinZoom(3)