From c8c98494355cbb0d5292d0ac31bdd9cbf698d7bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Etil=C3=A8ne=20Jourdier?= Date: Sun, 19 Oct 2025 23:04:34 +0200 Subject: [PATCH] fix area test for platforms in OMT process --- resources/process-openmaptiles.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/process-openmaptiles.lua b/resources/process-openmaptiles.lua index 3158bfba..a510e63f 100644 --- a/resources/process-openmaptiles.lua +++ b/resources/process-openmaptiles.lua @@ -381,7 +381,6 @@ function way_function() local housenumber = Find("addr:housenumber") local write_name = false local construction = Find("construction") - local is_highway_area = highway~="" and Find("area")=="yes" and is_closed -- Miscellaneous preprocessing if Find("disused") == "yes" then return end @@ -458,6 +457,7 @@ function way_function() if highway ~= "" or public_transport == "platform" then local access = Find("access") local surface = Find("surface") + local is_area = (public_transport == "platform" or Find("area")=="yes") and is_closed local h = highway local is_road = true @@ -511,13 +511,13 @@ function way_function() end -- Drop all areas except infrastructure for pedestrians handled above - if is_highway_area and h ~= "path" then + if is_area and h ~= "path" then minzoom = INVALID_ZOOM end -- Write to layer if minzoom <= 14 then - write_to_transportation_layer(minzoom, h, subclass, ramp, service, false, is_road, is_highway_area) + write_to_transportation_layer(minzoom, h, subclass, ramp, service, false, is_road, is_area) -- Write names if not is_closed and (HasNames() or Holds("ref")) then