Skip to content

Commit 6d473dc

Browse files
committed
Make z-order calculation in flex compatibility config more robust
1 parent 36d698b commit 6d473dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flex-config/compatible.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ function as_bool(value)
407407
end
408408

409409
function get_z_order(tags)
410-
local z_order = 100 * math.floor(tonumber(tags.layer or '0'))
410+
local z_order = 100 * math.floor(tonumber(tags.layer or '0') or 0)
411411
local roads = false
412412

413413
local highway = tags['highway']

0 commit comments

Comments
 (0)