Skip to content

Commit

Permalink
adapt lua style to unfiltered relation members
Browse files Browse the repository at this point in the history
  • Loading branch information
lonvia committed Apr 22, 2017
1 parent 4211843 commit 4714b1c
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion style.lua
Expand Up @@ -261,7 +261,8 @@ function filter_tags_relation_member (keyvalues, keyvaluemembers, roles, memberc
-- Count the number of polygon tags of the object
for i,k in ipairs(polygon_keys) do
if keyvalues[k] then
polytagcount = polytagcount + 1
polytagcount = 1
break
end
end
-- If there are no polygon tags, add tags from all outer elements to the multipolygon itself
Expand All @@ -273,6 +274,19 @@ function filter_tags_relation_member (keyvalues, keyvaluemembers, roles, memberc
end
end
end

f, keyvalues = filter_tags_generic(keyvalues, 1)
-- check again if there are still polygon tags left
polytagcount = 0
for i,k in ipairs(polygon_keys) do
if keyvalues[k] then
polytagcount = 1
break
end
end
if polytagcount == 0 then
filter = 1
end
end
-- For any member of the multipolygon, set membersuperseded to 1 (i.e. don't deal with it as area as well),
-- except when the member has a key/value combination such that
Expand Down

0 comments on commit 4714b1c

Please sign in to comment.