Replies: 1 comment
-
I think i have solved this problem, first accept the relation with type="building" while true do
local rel = way:NextRelation()
if not rel then break end
local featuretype = way:FindInRelation("type")
if (featuretype == "building") then
isOutline = true;
end
admin_level = math.min(admin_level, tonumber(way:FindInRelation("admin_level")) or 11)
end |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, i need to find out the features with role="outline" and belong to a relation which has type="building",

then tag them with {"extrude":"false"} or set their attributes with {"extrude":"false"}
So that i can only render the "buidling:part" without extrude the outline polygon?
how can i write the .lua file?thanks
Beta Was this translation helpful? Give feedback.
All reactions