Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions resources/process-openmaptiles.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading