Skip to content

Commit b5184d8

Browse files
authored
Merge pull request #1247 from joto/fix-z-order-compatible
Make z-order calculation in flex compatibility config more robust
2 parents 36d698b + 6d473dc commit b5184d8

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)